cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A229522 Final digit (in decimal system) of (n^n)^n, i.e., (n^n)^n mod 10.

This page as a plain text file.
%I A229522 #30 Jan 13 2024 19:24:55
%S A229522 1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,
%T A229522 5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,
%U A229522 9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6
%N A229522 Final digit (in decimal system) of (n^n)^n, i.e., (n^n)^n mod 10.
%C A229522 Periodic sequence with period 10.
%H A229522 <a href="/index/Rec#order_10">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,0,0,0,0,1).
%F A229522 a(n) = A120962(A002489(n)). - _Michel Marcus_, Aug 09 2023
%t A229522 Table[PowerMod[n^n, n, 10], {n, 200}]
%o A229522 (PARI) a(n)=n%=10; lift(Mod(n,10)^n^n) \\ _Charles R Greathouse IV_, Dec 27 2013
%o A229522 (Python)
%o A229522 def A229522(n): return (0, 1, 6, 3, 6, 5, 6, 7, 6, 9)[n%10] # _Chai Wah Wu_, Aug 10 2023
%Y A229522 Cf. A002489, A120962, A364789 (initial digit).
%K A229522 nonn,base,easy
%O A229522 1,2
%A A229522 _José María Grau Ribas_, Sep 25 2013