sequence with prime factors
Source: Brazilian Mathematical Olympiad 2024, Level 2, Problem 1
October 12, 2024
number theoryprime factorizationSequence
Problem Statement
Consider a sequence whose first term is a given positive integer . Consider the prime factorization of . If is a power of 2, the sequence consists of a single term: . Otherwise, the second term of the sequence is obtained by replacing the largest prime factor of with in the prime factorization. If the new number is not a power of 2, we repeat the same procedure with it, remembering to factor it again into primes. If it is a power of 2, the numerical sequence ends. And so on.For example, if the first term of the sequence is , since its largest prime factor is , the second term is . Repeating the procedure, the largest prime factor of the second term is , so the third term is . Since we obtained a power of 2, the sequence has 3 terms: , , and . a) How many terms does the sequence have if the first term is ?
b) Show that if a prime factor leaves a remainder of 1 when divided by 3, then is an integer that also leaves a remainder of 1 when divided by 3.
c) Present an initial term less than 1,000,000 (one million) such that the sequence starting from has exactly 11 terms.