OFFSET
1,2
COMMENTS
The initial 1 is included by a convention.
EXAMPLE
For n = 17, the iteration proceeds as follows 17 -> 18 (= 2*3*3), 18 -> 13 (13 is a prime), 13 -> 14 (= 2*7), 14 -> 8 (= 2*2*2), 8 -> 1. The largest prime factor present after the initial step is 13, which is less than the largest prime factor of 17 (which is 17 itself), thus 17 is included in this sequence.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 28 2021
STATUS
approved