OFFSET
1,3
COMMENTS
All terms greater than 1 occur exactly twice: a(A137662(n)) = a(n).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
MATHEMATICA
nn = 120; k = 1; q = 1; Prepend[Array[Set[k, If[PrimeQ[k], # - q, q++]] &, nn - 1, 2], 1] (* Michael De Vlieger, Jan 14 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 04 2008
STATUS
approved