login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A233398
n^n mod 3^n.
0
0, 1, 4, 0, 13, 209, 0, 1231, 739, 0, 51850, 129587, 0, 657067, 868120, 0, 8400886, 91426058, 0, 859535812, 1483912651, 0, 30374372956, 68688648677, 0, 422259655777, 2129293909882, 0, 11623487749588, 44275834126985, 0, 329933248712302, 971441847750184, 0, 927342285792613
OFFSET
0,3
PROG
(Python)
for n in range(55): print str(n**n % 3**n)+', ',
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Dec 08 2013
STATUS
approved