login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A056788 a(n) = n^n + (n-1)^(n-1). 10
2, 5, 31, 283, 3381, 49781, 870199, 17600759, 404197705, 10387420489, 295311670611, 9201412118867, 311791207040509, 11414881932150269, 449005897206417391, 18884637964090410991, 845687005960046315793 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For even n > 1, the absolute value of the discriminant of the polynomial x^n+x-1. [Corrected by Artur Jasinski, May 07 2010]
The largest known prime in this sequence is a(4) = 283.
REFERENCES
R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999; see equation (6.7).
LINKS
Walter Nissen, post on np ( n ) = n^n + (n+1)^(n+1), on home page "Up for the count!". (Updated Oct 02 2012)
EXAMPLE
a(3) = 2^2 + 3^3 = 4 + 27 = 31.
MATHEMATICA
Join[{2}, Table[n^n+(n-1)^(n-1), {n, 2, 20}]] (* T. D. Noe, Aug 13 2004 *)
Join[{2}, Total/@Partition[Table[n^n, {n, 20}], 2, 1]] (* Harvey P. Dale, Jun 26 2017 *)
PROG
(PARI) A056788(n)=n^n+(n-1)^(n-1) \\ M. F. Hasler, Oct 02 2012
CROSSREFS
Cf. A000312 (n^n), A086797 (discriminant of the polynomial x^n-x-1).
Cf. A056187, A056790, A192397 (smallest & largest prime factor of a(n), records of the latter), A217435 = bigomega(a(n)).
Sequence in context: A056790 A192397 A097396 * A091859 A085873 A303289
KEYWORD
nonn
AUTHOR
Walter Nissen, Aug 20 2000
EXTENSIONS
Minor corrections by M. F. Hasler, Oct 02 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)