OFFSET
1,1
COMMENTS
The sequence is conjectured to be a permutation of the positive integers.
The empty product 1 never appears - Michael De Vlieger, Jan 24 2024
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
FORMULA
a(A002110(k-1)) = the k-th prime.
EXAMPLE
a(7) = 10 as 2 is the smallest prime that does not divide 7, and 10 = 2*5 is the smallest multiple of 2 that has not yet appeared.
MATHEMATICA
nn = 2^10;
c[_] := False; m[_] := 1;
f[x_] := Block[{q = 2}, While[Divisible[x, q], q = NextPrime[q]]; q];
Do[While[c[Set[k, #*m[#]]], m[#]++] &[f[i]];
Set[{a[i], c[k]}, {k, True}], {i, nn}];
Array[a, nn] (* Michael De Vlieger, Jan 24 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Jan 18 2024
STATUS
approved