ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1595. Perfect Sequence

Solution spoiler.
Posted by Bliss 25 Oct 2018 01:34
You may just want to continue the sequence from sample, for me it was enough to get it for n = 5
{ 1, 3, 2, 6, 8, 4, 11, 5 } to start noticing the pattern.

Alternatively, just plug it into OEIS and come across A019444 with an explanation how to compute the answer :D