Let p be an odd prime number and Z>0 be the set of positive integers. Suppose that a function f:Z>0×Z>0→{0,1} satisfies the following properties:[*] f(1,1)=0.
[*] f(a,b)+f(b,a)=1 for any pair of relatively prime positive integers (a,b) not both equal to 1;
[*] f(a+b,b)=f(a,b) for any pair of relatively prime positive integers (a,b).Prove that
n=1∑p−1f(n2,p)⩾2p−2. IMO Shortlistnumber theoryEuclidean algorithm