Find all a_1 that make the sequence eventually periodic, and all periods
Source: Brazilian Mathematical Olympiad 2024, Level 3, Problem 1
October 12, 2024
SequencePeriodic sequenceprime factorizationnumber theory
Problem Statement
Let be an integer greater than or equal to 2. Consider the sequence such that its first term is , and for , the -th term of the sequence, we have
where is the prime factorization of , with , and positive integers.For example, if , the next two terms of the sequence are
Determine for which values of the sequence is eventually periodic and what all the possible periods are.Note: Let be a positive integer. A sequence is eventually periodic with period if is the smallest positive integer such that there exists an satisfying for all .