OFFSET
0,2
LINKS
Harry J. Smith, Table of n, a(n) for n=0,...,1000
FORMULA
MATHEMATICA
Table[Total[IntegerDigits[7^n]], {n, 55}] (* Harvey P. Dale, Nov 22 2010 *)
PROG
(MAGMA) [ &+Intseq(7^n): n in [0..60] ];
(PARI) SumD(x)= { local(s=0); while (x>9, s+=x%10; x\=10); return(s + x) }
{ for (n=0, 1000, a=SumD(7^n); write("b066003.txt", n, " ", a) ) } \\ Harry J. Smith, Nov 06 2009
(PARI) a(n) = sumdigits(7^n); \\ Michel Marcus, Nov 01 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Dec 11 2001
STATUS
editing