An Interesting Sequence

Hey there, could anyone tell the python solution to An Interesting Sequence, because I check out and I found that almost all of the people were not able to that question in python. Was that question meant to be solved in just C++ because if that was so then the question was biased. And if not then can you please share the python solution to that question because I couldn’t solve it.

1 Like