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.
%I A365936 #18 Oct 19 2023 23:09:06 %S A365936 1,2,9,4,5,6,9,2,1,0,1,8,1,4,5,6,1,8,1,0,1,2,9,4,5,6,9,2,1,0,1,8,1,4, %T A365936 5,6,1,8,1,0,1,2,9,4,5,6,9,2,1,0,1,8,1,4,5,6,1,8,1,0,1,2,9,4,5,6,9,2, %U A365936 1,0,1,8,1,4,5,6,1,8,1,0,1,2,9,4,5,6,9 %N A365936 Final digit (in decimal system) of n^(n-1) = A000169(n). %C A365936 This is a periodic sequence with period 20 which is twice the considered radix. %H A365936 <a href="/index/Rec#order_20">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1). %F A365936 a(n) = n^(n-1) mod 10. %F A365936 a(n) = A365935(n+10). %e A365936 For n = 4, a(4) = 4^3 mod 10 = 64 mod 10 = 4. %t A365936 a[n_]:=Last[IntegerDigits[n^(n-1)]]; Array[a,87] (* _Stefano Spezia_, Sep 26 2023 *) %Y A365936 Cf. A000169, A056849, A120962, A138029, A365707. %K A365936 nonn,base,easy %O A365936 1,2 %A A365936 _Marco RipĂ _, Sep 23 2023