Conjecture: the sequence a(n) taken modulo a positive integer k is eventually periodic with the period dividing phi(k). For example, the sequence taken modulo 11 is [1, 2, 6, 10, 9, 1, 5, 9, 8, 7, 10, 4, 6, 10, 7, 1, 0, 9, 5, 8, 3, 4, 6, 10, 7, 1, 0, 9, 5, 8, 3, 4, 6, 10, 7, 1, 0, 9, 5, 8, 3, ...] with an apparent period of 10 (= phi(11)) starting at n = 11. -
Peter Bala, Aug 03 2025