OFFSET
0,2
REFERENCES
C. Kimberling, Fractal sequences and interspersions, Ars Combinatoria, vol. 45 p 157 1997.
LINKS
C. Kimberling, Interspersions
MATHEMATICA
compositePi[n_] := Length[Select[Table[FixedPoint[i + PrimePi[#] + 1 &, i + PrimePi[i] + 1], {i, n}], # <= n &]]; compositefractal[n_] := PrimePi[NestWhile[compositePi, n, ! PrimeQ[#] && # != 1 &]] + 1; Array[compositefractal, 30] (* Birkas Gyorgy, Apr 05 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved