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!)
A231712 a(n) = n^n + n - 1. 5
0, 1, 5, 29, 259, 3129, 46661, 823549, 16777223, 387420497, 10000000009, 285311670621, 8916100448267, 302875106592265, 11112006825558029, 437893890380859389, 18446744073709551631, 827240261886336764193, 39346408075296537575441, 1978419655660313589123997 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Supersequence of A187605 (primes of the form n^n + n - 1).
Numbers n such that a(n) = prime: 2, 3, 19, 30, 535, 1551, ..., another term > 2300 (see A058912 and A187605).
Also generalization of the problem: "What is the minimum length of a text consisting only of the first n letters of the alphabet and containing all possible n-tuples (no blanks)?" (see Puzzleup link). Example for n = 3, length of text a(3) = 29: AAABAACABBABCACBACCBBBCBCCCAA, all triples (AAA, AAB, ..., CCC) occurring exactly once. - Jörg Zurkirchen, Sep 06 2014
LINKS
FORMULA
a(n) = A066279(n) - 2 = A066068(n) - 1.
E.g.f.: 1/(1 + LambertW(-x)) + (x-1)*exp(x). - Alois P. Heinz, Jun 15 2018
MAPLE
A231712:=n->n^n+n-1: seq(A231712(n), n=0..20); # Wesley Ivan Hurt, Sep 23 2014
MATHEMATICA
Join[{0}, Table[n^n + n - 1, {n, 18}]]
PROG
(PARI) a(n)=n^n+n-1 \\ Edward Jiang, Sep 06 2014
(Magma) [n^n+n-1 : n in [0..20]]; // Wesley Ivan Hurt, Sep 23 2014
CROSSREFS
Sequence in context: A103815 A134752 A370768 * A215867 A342423 A342449
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Nov 12 2013
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 13:40 EDT 2024. Contains 371792 sequences. (Running on oeis4.)