OFFSET
1,2
COMMENTS
In other words, a(n) is the least novel number p^k, where p is the greatest prime divisor of a(n-2) + a(n-1) and k >= 1. All terms are prime powers, though it is not known if every such number appears. Primes to the first power do not occur in natural order (e.g., 43 precedes 29).
LINKS
Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, showing and labeling primes in red.
EXAMPLE
a(3) = 3 because a(1) + a(2) = 3, and no power of 3 has yet appeared.
a(4) = 5 because a(2) + a(3) = 5, and no power of 5 has yet appeared.
a(15) = 121 because a(13) + a(14) = 33 which has greatest prime divisor 11. But 11^1 has already occurred at a(8), so the least novel power of 11 is 11^2 = 121.
MATHEMATICA
nn = 120; c[_] = False; q[_] = 1; Array[Set[{a[#], c[#]}, {#, True}] &, 2]; s = FactorInteger[a[1] + a[2]][[-1, 1]]; u = 2; Do[k = q[s]; While[c[s^k], k++]; While[c[s^q[s]], q[s]++]; k = s^k; Set[{a[n], c[k], s}, {k, True, FactorInteger[a[n - 1] + k][[-1, 1]]}], {n, 3, nn}]; Array[a, nn] (* Michael De Vlieger, Jan 16 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Jan 16 2023
EXTENSIONS
More terms from Michael De Vlieger, Jan 16 2023
STATUS
approved