A048861 a(n) = n^n - 1.
0, 3, 26, 255, 3124, 46655, 823542, 16777215, 387420488, 9999999999, 285311670610, 8916100448255, 302875106592252, 11112006825558015, 437893890380859374, 18446744073709551615, 827240261886336764176, 39346408075296537575423, 1978419655660313589123978
Offset: 1
Examples
For n=3, a(n) = 3^3 - 1 = 27 - 1 = 26. - _Michael B. Porter_, Nov 12 2017
References
- 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.
Links
- G. C. Greubel, Table of n, a(n) for n = 1..385
- F. Smarandache, Only Problems, Not Solutions!
Programs
-
Magma
[ n^n-1: n in [1..25]]; // Vincenzo Librandi, Dec 29 2010
-
Mathematica
Table[n^n - 1, {n, 1, 50}] (* G. C. Greubel, Nov 10 2017 *)
-
PARI
a(n)=n^n-1 \\ Charles R Greathouse IV, Feb 24 2012
Formula
E.g.f.: 1/(1+LambertW(-x)) - exp(x). - Vaclav Kotesovec, Dec 20 2014
Extensions
Extended (and corrected) by Patrick De Geest, Jul 15 1999
Comments