A195744 a(n) = 15*2^(n+1) + 1.
31, 61, 121, 241, 481, 961, 1921, 3841, 7681, 15361, 30721, 61441, 122881, 245761, 491521, 983041, 1966081, 3932161, 7864321, 15728641, 31457281, 62914561, 125829121, 251658241, 503316481, 1006632961, 2013265921, 4026531841, 8053063681, 16106127361
Offset: 0
Examples
First few terms in binary are 11111, 111101, 1111001, 11110001, 111100001.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (3,-2).
Crossrefs
Programs
-
Magma
[15*2^(n+1) + 1: n in [0..30]]; // Vincenzo Librandi, Sep 24 2011
-
Mathematica
15*2^Range[50] + 1 (* Paolo Xausa, Apr 02 2024 *)
-
PARI
a(n)=30*2^n+1 \\ Charles R Greathouse IV, Oct 07 2015
Formula
From Bruno Berselli, Sep 23 2011: (Start)
G.f.: (31-32*x)/(1-3*x+2*x^2).
a(n) = 2*a(n-1)-1.
E.g.f.: exp(x)*(1 + 30*exp(x)). - Stefano Spezia, Oct 08 2022
Extensions
Corrected by Arkadiusz Wesolowski, Sep 23 2011
Comments