OFFSET
1,1
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, A18.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..13766
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]];
ClassMinusNbr[n_] := Length[NestWhileList[f, n, UnsameQ, All]] - 3;
Prime[ Select[ Range[122], ClassMinusNbr[ Prime[ # ]] == 2 &] ] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited and extended by Robert G. Wilson v, Mar 20 2003
Corrected by R. J. Mathar, Feb 01 2007
STATUS
approved