Hi, I was trying to solve this [problem:102501H].↵
I tried to find a pattern but couldn't due to the large constraints.↵
The editorial claims that we need to find the Period of the sequence but I am unable to do so.↵
Any help / suggestions are welcome. ↵
↵

I tried to find a pattern but couldn't due to the large constraints.↵
The editorial claims that we need to find the Period of the sequence but I am unable to do so.↵
Any help / suggestions are welcome. ↵
↵
