OFFSET
0,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
Hartosh Singh Bal and Gaurav Bhatnagar, Prime number conjectures from the Shapiro class structure, arXiv:1903.09619 [math.NT], 2019. See function S(n), p. 2.
Paul Erdős, Andrew Granville, Carl Pomerance and Claudia Spiro, On the normal behavior of the iterates of some arithmetic functions, Analytic number theory, Birkhäuser Boston, 1990, pp. 165-204.
Paul Erdős, Andrew Granville, Carl Pomerance and Claudia Spiro, On the normal behavior of the iterates of some arithmetic functions, Analytic number theory, Birkhäuser Boston, 1990, pp. 165-204. [Annotated copy with A-numbers]
Harold Shapiro, An arithmetic function arising from Phi-function, American Math. Monthly, Vol. 50, No. 1 (1943), pp. 18-30.
FORMULA
a(n) = Sum_{j=1..n} A003434(j).
EXAMPLE
Iteration sequences of Phi applied to 1,2,3,4,5,6 give lengths 0,1,2,2,3,2 with partial sums as follows:0,1,3,5,8,10 resulting in the first six terms of this sequence. It differs by n from the analogous sums applied to A049108 sequence.
MATHEMATICA
f[1] = 0; f[n_] := f[n] = f[EulerPhi[n]] + 1; Accumulate[Array[f, 100]] (* Amiram Eldar, Nov 27 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Apr 13 2001
STATUS
approved