OFFSET
1,2
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..750
Michael De Vlieger, Scatterplot of Log_10(a(n)), n = 1..750, showing records in red.
Michael De Vlieger, Log log scatterplot of log_10(a(n)), n = 1..600, showing primes in red, prime powers in gold, and squarefree composites in green.
EXAMPLE
a(6) = 10 as a(3) + a(4) + a(5) = 3 + 6 + 11 = 20 = 2*2*5, and the smallest unused number containing 2 and 5 as factors is 10.
MATHEMATICA
nn = 120; c[_] = False; q[_] = 1;
f[n_] := Times @@ FactorInteger[n][[All, 1]]; t = 3;
Array[Set[{a[#], c[#]}, {#, True}] &, t]; Set[{i, j, k, x}, {a[t - 2],
a[t - 1], a[t], f[a[t - 2] + a[t - 1] + a[t]]}];
Do[m = q[x];
While[c[x m], m++];
m *= x; While[c[x q[x]], q[x]++];
Set[{a[n], c[m], i, j, k, x}, {m, True, j, k, m, f[j + k + m]}], {n,
t + 1, nn}]; Array[a, nn] (* Michael De Vlieger, Mar 20 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon and Michael De Vlieger, Mar 16 2023
STATUS
approved