Which algorithm does INOI 2019 problem 2(Interesing sequences) use?

What is the basic outline of algorithm to be used in Interesting Sequences, INOI-19 Q.No 2 ? Thanks in advanced :smiley:

Ever tried searching for the editorial on this forum? Search all topics under editorial category, with inoiprac tag. You may view them here https://discuss.codechef.com/tags/c/editorial/inoiprac

1 Like

Thanks man.