OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..450 (first 250 terms from G. C. Greubel)
Florian Luca, Igor E. Shparlinsky, On the largest prime factor of n! + 2^n - 1, J. Th. des Nombres de Bordeaux 2005, Vol.17, Fasc. 3.
FORMULA
a(n) = n! + 2^n - 1.
E.g.f.: 1/(1-x) + exp(2*x) - exp(x). - Alois P. Heinz, May 09 2018
MAPLE
MATHEMATICA
Table[n! + 2^n - 1, {n, 30}] (* Artur Jasinski *)
PROG
(Sage) [gaussian_binomial(n, 1, 2)+factorial(n) for n in range(1, 21)] # Zerinvary Lajos, May 29 2009
(PARI) a(n)=n!+2^n-1 \\ Charles R Greathouse IV, Feb 01 2013
(Magma) [Factorial(n)+2^n-1 : n in [1..20]]; // Wesley Ivan Hurt, Oct 23 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Feb 09 2007
EXTENSIONS
a(0)=1 prepended by Alois P. Heinz, May 09 2018
STATUS
approved