PROG
(MAGMAMagma) [ &+Intseq(7^n): n in [0..60] ];
(MAGMAMagma) [ &+Intseq(7^n): n in [0..60] ];
reviewed
approved
proposed
reviewed
editing
proposed
(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
proposed
editing
editing
proposed
editing
proposed
(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
{ for (n=0, 1000, a=SumD(7^n); write("b066003.txt", n, " ", a) ) } \\ Harry J. Smith, Nov 06 2009
approved
editing
proposed
approved