f(n,m)=a_1-a_2+a_3 -a_4+ ...+a _{2001} & a_{k+1} is residue of a_k^2 mod n
Source: Mexican Mathematical Olympiad 2001 OMM P4
July 30, 2018
number theoryNumber theoretic functionsresidue
Problem Statement
For positive integers define as follows. Write a list of numbers , where , and is the residue of (for ). Then put . For which can we find m such that and ?