Let p≥3 be a prime and a1,a2,⋯,ap−2 be a sequence of positive integers such that for every k∈{1,2,⋯,p−2} neither ak nor akk−1 is divisible by p. Prove that product of some of members of this sequence is equivalent to 2 modulo p. number theory unsolvednumber theory