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!)
A130195 Row sums of triangle A130194. 2
1, 3, 2, -2, -1, 5, 4, -4, -3, 7, 6, -6, -5, 9, 8, -8, -7, 11, 10, -10, -9, 13, 12, -12, -11, 15, 14, -14, -13, 17, 16, -16, -15, 19, 18, -18, -17, 21, 20, -20, -19, 23, 22, -22, -21, 25, 24, -24, -23, 27, 26, -26, -25, 29, 28, -28, -27, 31, 30, -30, -29, 33 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
Row sums of A130194, which is composed of A009531 in every column.
a(n) = a(n-1)-2*a(n-2)+2*a(n-3)-a(n-4)+a(n-5). - Colin Barker, Oct 03 2014
G.f.: -x*(x+1)^2/((x-1)*(x^2+1)^2). - Colin Barker, Oct 03 2014
a(n) = (4+(3+(2*n+1)*(-1)^n)*(-1)^((2*n-3-(-1)^n)/4))/4. - Luce ETIENNE, Aug 14 2015
EXAMPLE
a(4) = -2 = sum of A130194 row 4 terms: (-4, -1, 2, 1).
MATHEMATICA
LinearRecurrence[{1, -2, 2, -1, 1}, {1, 3, 2, -2, -1}, 70] (* Harvey P. Dale, Jun 24 2023 *)
PROG
(PARI) lista(nn) = {vgf = x*(1+x)^2/(1+x^2)^2 + O(x^(nn+1)); m = matrix(nn, nn, i, j, if (i >= j, polcoeff(vgf, i-j+1))); for (n=1, nn, s = sum(k=1, n, m[n, k]); print1(s, ", "); ); } \\ Michel Marcus, Oct 03 2014
(PARI) Vec(-x*(x+1)^2/((x-1)*(x^2+1)^2) + O(x^100)) \\ Colin Barker, Oct 03 2014
CROSSREFS
Sequence in context: A239067 A131015 A342769 * A071048 A357104 A098054
KEYWORD
sign,easy
AUTHOR
Gary W. Adamson, May 16 2007
EXTENSIONS
More terms from Michel Marcus, Oct 03 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 May 11 00:12 EDT 2024. Contains 372388 sequences. (Running on oeis4.)