OFFSET
0,1
COMMENTS
The primes in this sequence are listed in A050526. - M. F. Hasler, Oct 30 2010
An Engel expansion of 2/5 to the base 2 as defined in A181565, with the associated series expansion 2/5 = 2/6 + 2^2/(6*11) + 2^3/(6*11*21) + 2^4/(6*11*21*41) + ... . - Peter Bala, Oct 29 2013
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2).
FORMULA
a(n) = 5*2^n + 1. - M. F. Hasler, Oct 30 2010
a(n) = 3*a(n-1) - 2*a(n-2), n>1. - Vincenzo Librandi, Nov 03 2011
G.f.: (6-7*x) / ((1-x)*(1-2*x)). - Colin Barker, Sep 20 2016
E.g.f.: exp(x)*(1 + 5*exp(x)). - Stefano Spezia, Oct 08 2022
Product_{n>=0} (1 + 1/a(n)) = 7/5. - Amiram Eldar, Aug 04 2024
MATHEMATICA
NestList[2#-1&, 6, 40] (* Harvey P. Dale, Jun 23 2017 *)
PROG
(PARI) a(n)=5<<n+1 \\ M. F. Hasler, Oct 30 2010
(Magma) [5*2^n+1 : n in [0..30]]; // Vincenzo Librandi, Nov 03 2011
(PARI) Vec((6-7*x)/((1-x)*(1-2*x)) + O(x^40)) \\ Colin Barker, Sep 20 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 15 2003
STATUS
approved