OFFSET
1,4
COMMENTS
LINKS
David A. Corneth, Table of n, a(n) for n = 1..450
EXAMPLE
For n = 4, a(4) = phi(a(1) + a(2) + a(3)) = phi(1 + 1 + 1) = phi(3) = 2.
MAPLE
b:= proc(n) option remember; `if`(n<2, n,
numtheory[phi](b(n-1))+b(n-1))
end:
a:= n-> b(n)-b(n-1):
seq(a(n), n=1..50); # Alois P. Heinz, Oct 02 2020
MATHEMATICA
a[1] := 1; a[n_] := a[n] = EulerPhi[Plus @@ Table[a[m], {m, n - 1}]]; Table[a[n], {n, 30}]
PROG
(PARI) first(n) = {my(res = vector(n), t = 1); res[1] = 1; for(i = 2, n, c = eulerphi(t); res[i] = c; t+=c); res} \\ David A. Corneth, Oct 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Sep 30 2009
EXTENSIONS
Terms verified by Alonso del Arte, Oct 12 2009
More terms from David A. Corneth, Oct 02 2020
STATUS
approved