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!)
A239286 Expansion of (x + 1)*(3*x^2 + 2*x + 1)/(x^2 + x + 1)^2. 1
1, 1, 0, -2, 1, 3, -5, 1, 6, -8, 1, 9, -11, 1, 12, -14, 1, 15, -17, 1, 18, -20, 1, 21, -23, 1, 24, -26, 1, 27, -29, 1, 30, -32, 1, 33, -35, 1, 36, -38, 1, 39, -41, 1, 42, -44, 1, 45, -47, 1, 48, -50, 1, 51, -53, 1, 54, -56, 1, 57, -59, 1, 60, -62, 1, 63, -65 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = Sum_{k=ceiling((n-1)/2)..n} (-1)^(k+1)*C(k+1,n-k)*(k*n-1))/(k+1).
a(3n+1) = 1, a(3n) = 1 - 3n, a(3n+2) = 3n. - Ralf Stephan, Mar 17 2014
MATHEMATICA
CoefficientList[Series[(x+1)*(3*x^2+2*x+1)/(x^2+x+1)^2, {x, 0, 50}], x] (* or *) LinearRecurrence[{-2, -3, -2, -1}, {1, 1, 0, -2}, 30] (* G. C. Greubel, May 26 2018 *)
PROG
(Maxima) a(n):=sum(((-1)^(k+1)*binomial(k+1, n-k)*(k*n-1))/(k+1), k, ceiling((n-1)/2), n);
(PARI) my(x='x+O('x^30)); Vec((x+1)*(3*x^2+2*x+1)/(x^2+x+1)^2) \\ G. C. Greubel, May 26 2018
CROSSREFS
Sequence in context: A220562 A215564 A189449 * A109533 A062705 A059234
KEYWORD
sign,easy
AUTHOR
Vladimir Kruchinin, Mar 14 2014
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 April 23 08:33 EDT 2024. Contains 371905 sequences. (Running on oeis4.)