OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
f:= n -> convert(convert(numtheory:-phi(n), base, 10), `+`):
map(f, [$1..100]); # Robert Israel, Dec 05 2017
MATHEMATICA
Total/@(IntegerDigits/@EulerPhi[Range[70]]) (* Harvey P. Dale, Jul 31 2013 *)
Table[Plus@@IntegerDigits@(EulerPhi[n]), {n, 100}] (* Vincenzo Librandi, Jun 01 2019 *)
PROG
(PARI) a(n) = sumdigits(eulerphi(n)); \\ Michel Marcus, Dec 18 2016
(Magma) [ &+Intseq(EulerPhi(n)): n in [1..100] ]; // Vincenzo Librandi, Jun 01 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved