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!)
A113021 Expansion of x^2/(1 - 2*x + 2*x^2 - x^3 - x^4). 2
0, 0, 1, 2, 2, 1, 1, 4, 9, 12, 11, 11, 21, 43, 66, 78, 88, 129, 226, 360, 485, 605, 826, 1287, 2012, 2881, 3851, 5239, 7669, 11592, 16936, 23596, 32581, 46498, 68366, 99913, 142173, 199384, 282701, 408720, 593595, 851835, 1207901, 1714447, 2458522 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Diagonal sums of number triangle A113020.
LINKS
FORMULA
a(n) = 2*a(n-1) - 2*a(n-2) + a(n-3) + a(n-4);
a(n) = Sum_{k=0..floor(n/2)} Sum_{j=0..n-k} C(n-k, j)*C(0, j-k)*Fibonacci(j-2k);
a(n) = Sum_{k=0..floor(n/2)} (-1)^(k+1)*binomial(n-k, k)*Fibonacci(k).
MATHEMATICA
Table[Sum[(-1)^(k + 1) Binomial[n - k, k] Fibonacci@ k, {k, 0, Floor[n/2]}], {n, 0, 44}] (* Michael De Vlieger, Feb 13 2017 *)
LinearRecurrence[{2, -2, 1, 1}, {0, 0, 1, 2}, 50] (* Harvey P. Dale, Jul 16 2018 *)
PROG
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; 1, 1, -2, 2]^n*[0; 0; 1; 2])[1, 1] \\ Charles R Greathouse IV, Feb 14 2017
(PARI) x='x+O('x^30); concat([0, 0], Vec(x^2/(1-2*x+2*x^2-x^3-x^4))) \\ G. C. Greubel, Apr 09 2018
(Magma) I:=[0, 0, 1, 2]; [n le 4 select I[n] else 2*Self(n-1) - 2*Self(n-2) + Self(n-3) + Self(n-4): n in [1..30]]; // G. C. Greubel, Apr 09 2018
CROSSREFS
Sequence in context: A225201 A124976 A176663 * A298261 A368135 A341991
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 11 2005
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 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)