The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A084172 a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + 2*a(n-4). 4
1, 2, 4, 9, 19, 40, 82, 167, 337, 678, 1360, 2725, 5455, 10916, 21838, 43683, 87373, 174754, 349516, 699041, 1398091, 2796192, 5592394, 11184799, 22369609, 44739230, 89478472, 178956957, 357913927, 715827868, 1431655750, 2863311515 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Original name was: Generalized Jacobsthal numbers.
Sums of rows of the triangle in A109225. - Reinhard Zumkeller, Jun 23 2005
LINKS
FORMULA
a(n) = 2^(n+2)/3 - (-1)^n/12 - (2*n+1)/4.
G.f: (2*x^3 - x^2 - x + 1)/( (x+1)*(1-2*x)*(1-x)^2).
a(n+2) = a(n+1) + 2*a(n) + n, a(0)=0, a(1)=2.
a(n) = A001045(n+1) + A083579(n).
a(n+1) = 2*a(n) + floor(n/2). Franklin T. Adams-Watters, Oct 17 2013
a(n)+a(n+1) = A095768(n+1). - R. J. Mathar, Apr 15 2024
MATHEMATICA
LinearRecurrence[{3, -1, -3, 2}, {1, 2, 4, 9}, 40] (* Harvey P. Dale, Nov 13 2013 *)
PROG
(Magma) [2^(n+2)/3-(-1)^n/12-(2*n+1)/4: n in [0..35]]; // Vincenzo Librandi, Jul 05 2011
CROSSREFS
Sequence in context: A018001 A018099 A011955 * A018100 A052908 A036616
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 18 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 00:14 EDT 2024. Contains 372720 sequences. (Running on oeis4.)