OFFSET
1,1
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, A18.
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000 (first 850 terms from M. F. Hasler)
EXAMPLE
1048438561 is in the sequence as it is a Class 13+ prime via 1048438561, 524219281, 262109641, 131054821, 65527411, 16381853, 910103, 2917, 1459, 73, 37, 19, 2. - David A. Corneth, May 24 2026
MAPLE
# For Maple program see Mathar link in A005105.
MATHEMATICA
PrimeFactors[n_Integer] := Flatten[ Table[ #[[1]], {1}] & /@ FactorInteger[n]]; f[n_Integer] := Block[{m = n}, If[m == 0, m = 1, While[ IntegerQ[m/2], m /= 2]; While[ IntegerQ[m/3], m /= 3]]; Apply[Times, PrimeFactors[m] + 1]]; ClassPlusNbr[n_] := Length[ NestWhileList[f, n, UnsameQ, All]] - 3; Prime[ Select[ Range[195000000], ClassPlusNbr[ Prime[ # ]] == 13 &]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Nov 26 2003
STATUS
approved
