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.

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

This page as a plain text file.
%I A120962 #30 Sep 22 2023 10:00:25
%S A120962 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,
%T A120962 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,
%U A120962 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
%N A120962 Final digit (in decimal system) of n^(n^n), i.e., n^(n^n) mod 10.
%C A120962 Periodic sequence with period length 20. - _Arkadiusz Wesolowski_, Feb 12 2012
%H A120962 <a href="/index/Rec#order_18">Index entries for linear recurrences with constant coefficients</a>, signature (0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1).
%F A120962 a(n) = A010879(A002488(n)). - _Michel Marcus_, Aug 04 2015
%p A120962 seq(n &^ (n^n) mod 10, n=0..105);
%t A120962 Join[{0}, Table[PowerMod[n, n^n, 10], {n, 100}]] (* _Stefan Steinerberger_, Nov 23 2007 *)
%o A120962 (PARI) a(n)=if(n%10,lift(Mod(n,10)^lift(Mod(n,20)^n)),0) \\ _Charles R Greathouse IV_, Feb 12 2012
%o A120962 (Python)
%o A120962 def A120962(n): return pow(n,n**n,10) # _Chai Wah Wu_, Sep 22 2023
%Y A120962 Cf. A061505, A229522, A229784.
%K A120962 nonn,base,easy
%O A120962 0,3
%A A120962 _N. J. A. Sloane_, Jul 19 2006, Oct 26 2007
%E A120962 More terms from _Stefan Steinerberger_, Nov 23 2007