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!)
A365689 Final decimal digit of n^((n+1)^(n+2)) = A030198(n). 2
0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6, 1, 8, 1, 0, 1, 2, 1, 4, 5, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Period 10, repeat: [0, 1, 2, 1, 4, 5, 6, 1, 8, 1].
LINKS
FORMULA
a(n) = n^((n+1)^(n+2)) mod 10.
a(n) = A103562(n) for n >= 4 (as 3^(2^1) == 9 (mod 10) instead of 1).
EXAMPLE
For n = 2, a(2) = 2417851639229258349412352 mod 10 = 2.
MATHEMATICA
PadRight[{}, 100, {0, 1, 2, 1, 4, 5, 6, 1, 8, 1}] (* Paolo Xausa, Oct 16 2023 *)
PROG
(PARI) a(n) = lift(Mod(n, 10)^((n+1)^(n+2))); \\ Michel Marcus, Sep 16 2023
(Python)
def A365689(n): return pow(n, (n+1)**(n+2), 10) # Chai Wah Wu, Sep 22 2023
CROSSREFS
Cf. A030198, A103562, A120962, A365689 (initial digit).
Sequence in context: A075423 A144774 A326056 * A074720 A323456 A326058
KEYWORD
nonn,base,easy
AUTHOR
Marco Ripà, Sep 16 2023
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 27 09:38 EDT 2024. Contains 372017 sequences. (Running on oeis4.)