The Chinese remainder theorem says that for pairwise coprime integers , any prescribed residue modulo each is realized by exactly one residue class modulo . The Fermat little theorem says that for a prime number and an integer not divisible by , ; equivalently, for every integer .
For the given prime number, write . Its square is for some integer , since one of two consecutive integers is even. Therefore . The Fermat little theorem applied modulo gives , hence ; applied modulo it gives . These applications are valid because .
The three moduli are pairwise coprime integers and have product . By the Chinese remainder theorem,

Articles by others on the same topic (0)

There are currently no matching articles.