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 A048861 #62 Jun 16 2025 02:18:57 %S A048861 0,3,26,255,3124,46655,823542,16777215,387420488,9999999999, %T A048861 285311670610,8916100448255,302875106592252,11112006825558015, %U A048861 437893890380859374,18446744073709551615,827240261886336764176,39346408075296537575423,1978419655660313589123978 %N A048861 a(n) = n^n - 1. %C A048861 From _Alexander Adamchuk_, Jan 22 2007: (Start) %C A048861 a(n) is divisible by (n-1). %C A048861 Corresponding quotients are a(n)/(n-1) = {1,3,13,85,781,9331, ...} = A023037(n). %C A048861 p divides a(p-1) for prime p. %C A048861 p divides a((p-1)/2) for prime p = {3,11,17,19,41,43,59,67,73,83,89,97,...} = A033200 Primes congruent to {1, 3} mod 8; or, odd primes of form x^2+2*y^2. %C A048861 p divides a((p-1)/3) for prime p = {61,67,73,103,151,193,271,307,367,...} = A014753 3 and -3 are both cubes (one implies other) mod these primes p=1 mod 6. %C A048861 p divides a((p-1)/4) for prime p = {5,13,17,29,37,41,53,61,73,...} = A002144 Pythagorean primes: primes of form 4n+1. %C A048861 p divides a((p-1)/5) for prime p = {31,191,251,271,601,641,761,1091,...}. %C A048861 p divides a((p-1)/6) for prime p = {7,241,313,337,409,439,607,631,727,751,919,937,...}. (End) %C A048861 For n > 1, a(n) is largest number that can be represented using n digits in the base-n number system. - _Chinmaya Dash_, Mar 31 2022 %D A048861 M. Le, Primes in the sequences n^n+1 and n^n-1, Smarandache Notions Journal, Vol. 10, No. 1-2-3, 1999, 156-157. %H A048861 G. C. Greubel, <a href="/A048861/b048861.txt">Table of n, a(n) for n = 1..385</a> %H A048861 F. Smarandache, <a href="http://www.gallup.unm.edu/~smarandache/OPNS.pdf">Only Problems, Not Solutions!</a> %F A048861 E.g.f.: 1/(1+LambertW(-x)) - exp(x). - _Vaclav Kotesovec_, Dec 20 2014 %e A048861 For n=3, a(n) = 3^3 - 1 = 27 - 1 = 26. - _Michael B. Porter_, Nov 12 2017 %t A048861 Table[n^n - 1, {n, 1, 50}] (* _G. C. Greubel_, Nov 10 2017 *) %o A048861 (Magma) [ n^n-1: n in [1..25]]; // _Vincenzo Librandi_, Dec 29 2010 %o A048861 (PARI) a(n)=n^n-1 \\ _Charles R Greathouse IV_, Feb 24 2012 %Y A048861 Cf. A000312, A048860, A023037, A033200, A014753, A002144. %K A048861 nonn,easy %O A048861 1,2 %A A048861 Charles T. Le (charlestle(AT)yahoo.com) %E A048861 Extended (and corrected) by _Patrick De Geest_, Jul 15 1999