login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A120962 Final digit (in decimal system) of n^(n^n), i.e., n^(n^n) mod 10. 7
0, 1, 6, 7, 6, 5, 6, 3, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 7, 6, 5, 6, 3, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 7, 6, 5, 6, 3, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 7, 6, 5, 6, 3, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 7, 6, 5, 6, 3, 6, 9, 0, 1, 6, 3, 6, 5, 6, 7, 6, 9, 0, 1, 6, 7, 6, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Periodic sequence with period length 20. - Arkadiusz Wesolowski, Feb 12 2012
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1).
FORMULA
a(n) = A010879(A002488(n)). - Michel Marcus, Aug 04 2015
MAPLE
seq(n &^ (n^n) mod 10, n=0..105);
MATHEMATICA
Join[{0}, Table[PowerMod[n, n^n, 10], {n, 100}]] (* Stefan Steinerberger, Nov 23 2007 *)
PROG
(PARI) a(n)=if(n%10, lift(Mod(n, 10)^lift(Mod(n, 20)^n)), 0) \\ Charles R Greathouse IV, Feb 12 2012
(Python)
def A120962(n): return pow(n, n**n, 10) # Chai Wah Wu, Sep 22 2023
CROSSREFS
Sequence in context: A369104 A253271 A258945 * A355922 A261024 A343436
KEYWORD
nonn,base,easy
AUTHOR
N. J. A. Sloane, Jul 19 2006, Oct 26 2007
EXTENSIONS
More terms from Stefan Steinerberger, Nov 23 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)