Let 1,a,b,c.....(N−1) denote the ϕ(N) numbers, less than N and prime to it; also let ′x′ represent any one of these numbers then 1x,ax,bx,.....(N−1)x are all different and primes to N. there are ϕ(N) of such products, and it is known that when these products are divided by N, the remainders are all different and all primes to N; thus the ϕ(N) remainders must be 1,a,b,c.....(N−1) Though not necessary in this order.
Hence x,ax,bx,..........(N−1) by a multiple of N
∴{xϕ(N)−1}abc.....(N−1)=M(N)
But the product abc....(N−1) is prime to N
∴xϕ(N)−1≡0(mod.N)