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!)
A172285 a(n) = (5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9. 3
0, 2, 1, 6, 7, 20, 33, 74, 139, 288, 565, 1142, 2271, 4556, 9097, 18210, 36403, 72824, 145629, 291278, 582535, 1165092, 2330161, 4660346, 9320667, 18641360, 37282693, 74565414, 149130799, 298261628, 596523225, 1193046482, 2386092931, 4772185896 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = 3*a(n-2) + 2*a(n-3), n>2.
a(n+1) = 2*a(n) + (-1)^n * (2+n).
a(n) = A053088(n-1) + A001045(n), n>0.
a(n) = A000079(n) - A053088(n).
a(2n) = A141291(n). a(2n+1) = 2*A164044(n).
G.f.: x*(2+x)/( (1-2*x)*(1+x)^2 ).
MAPLE
A172295 := proc(n) (5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9 ; end proc: seq(A172295(n), n=0..100) ; # R. J. Mathar, Feb 02 2010
MATHEMATICA
Table[(5*2^n - 5*(-1)^n - 3*n*(-1)^n)/9, {n, 0, 40}] (* Wesley Ivan Hurt, Aug 27 2015 *)
PROG
(Magma) [(5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9: n in [0..40]]; // Vincenzo Librandi, Aug 05 2011
(PARI) first(m)=vector(m, i, i--; (5*2^i -5*(-1)^i - 3*i*(-1)^i ) / 9) \\ Anders Hellström, Aug 27 2015
CROSSREFS
Sequence in context: A256277 A252746 A182883 * A192232 A358723 A243320
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 30 2010
EXTENSIONS
Definition replaced by explicit formula; g.f. added - R. J. Mathar, Feb 02 2010
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 June 7 14:59 EDT 2024. Contains 373202 sequences. (Running on oeis4.)