Periodicity And A Problem Of Powers A P-Adic Perspective