OFFSET
1,3
COMMENTS
Odd prime p divides a(p-2).
a(n) is prime for n = {3,4,6,74, ...}; prime terms are {5, 31, 2801, ...}.
a(n) is the (n-1)-th generalized repunit in base (n+1). For example, a(5) = 259 which is 1111 in base 6. - Mathew Englander, Oct 20 2020
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..350
FORMULA
a(n) = ((n+1)^(n-1) - 1)/n.
a(n) = (A000272(n+1) - 1)/n.
a(2k-1)/(2k+1) = A125599(k) for k>0.
From Mathew Englander, Dec 17 2020: (Start)
For n > 1, a(n) = Sum_{k=0..n-2} (n+1)^k.
For n > 1, a(n) = Sum_{j=0..n-2} n^j*C(n-1,j+1). (End)
MATHEMATICA
Table[((n+1)^(n-1)-1)/n, {n, 25}]
PROG
(Sage) [gaussian_binomial(n, 1, n+2) for n in range(0, 18)] # Zerinvary Lajos, May 31 2009
(Magma) [((n+1)^(n-1) -1)/n: n in [1..25]]; // G. C. Greubel, Aug 15 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Nov 26 2006
STATUS
approved