How can man proof this Theorem step by step, specially when $$p_i\mid a?$$ This theorem is in book: Elementary number theory by Koshy on page 334
Let $$p_1, p_2, . . . , p_k$$ be any distinct primes, and let $a$ any positive integer, and $$L = {\rm lcm}(p_1 − 1, p_2 − 1, . . . , p_{k} −1).$$ Then $$a^{L+1} \equiv a\pmod{p_1 p_2 \cdots p_k}.$$ i can not understand the proof in the book, Can anyone help me?
