OFFSET
1,2
COMMENTS
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..200
FORMULA
n = 8: 6^8 = 1679616 = 4*390625 + 1*65536 + 7*6561 + 22*256 + 21*1 where a(8)=21, the last coefficient and here 6^8 is decomposed into 4 + 1 + 7 + 22 + 21 = 55 like (8th) powers.
MATHEMATICA
Table[Fold[Mod, 6^n, Range[5, 2, -1]^n], {n, 40}] (* Harvey P. Dale, Mar 14 2011 *)
PROG
(PARI) { for (n=1, 200, a=(((6^n%5^n)%4^n)%3^n)%2^n; write("b064855.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 28 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 08 2001
STATUS
approved