A113870 a(n) = a(n-1) + 2^(k(n)), where k(n) is the n-th term of the sequence formed by k(1)=0 together with the numbers A042963.
1, 3, 7, 39, 103, 615, 1639, 9831, 26215, 157287, 419431, 2516583, 6710887, 40265319, 107374183, 644245095, 1717986919, 10307921511, 27487790695, 164926744167, 439804651111, 2638827906663, 7036874417767, 42221246506599
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..300
- Index entries for linear recurrences with constant coefficients, signature (1, 16, -16).
Programs
-
PARI
a(n)=([0,1,0; 0,0,1; -16,16,1]^(n-1)*[1;3;7])[1,1] \\ Charles R Greathouse IV, Jul 08 2024
Formula
G.f.: (3+x-40*x^2)/(4*(-1+x)*(-1+4*x)*(1+4*x)). - Vaclav Kotesovec, Nov 28 2012
Extensions
Edited with better definition and offset corrected by Omar E. Pol, Jan 08 2009