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 A143959 #15 Jun 02 2025 00:33:22 %S A143959 7,9,9,7,9,7,1,9,3,1,5,9,9,5,1,1,1,9,9,9,7,9,9,7,9,7,1,9,3,1,5,9,9,5, %T A143959 1,1,1,9,9,9,7,9,9,7,9,7,1,9,3,1,5,9,9,5,1,1,1,9,9,9,7,9,9,7,9,7,1,9, %U A143959 3,1,5,9,9,5,1,1,1,9,9,9,7,9,9,7,9,7,1,9,3,1,5,9,9,5,1,1,1,9,9,9 %N A143959 Final digit of n^(n+1)-(n+1)^n for n>2. %C A143959 Cyclic with a period of 20 %H A143959 <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). %t A143959 Last[IntegerDigits[#^(#+1)-(#+1)^#]]&/@ Range[3,150] (* _Harvey P. Dale_, Mar 12 2011 *) %o A143959 (Python) # -*- coding: iso-8859-1 -*- from math import * n=3 while n<100: ....r=(n**(n+1)-(n+1)**n)%10 ....print r, ....n=n+1 %Y A143959 A056849 %K A143959 base,easy,nonn %O A143959 3,1 %A A143959 _Sébastien Dumortier_, Sep 05 2008