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!)
A217778 Expansion of (1-x)^2*(1-3*x)/((1-3*x+x^2)*(1-5*x+5*x^2)). 4
1, 3, 10, 34, 117, 407, 1429, 5055, 17986, 64278, 230473, 828391, 2982825, 10754459, 38811802, 140165322, 506449789, 1830590295, 6618524221, 23933966743, 86562282258, 313102489406, 1132598701585, 4097213146599, 14822370816337, 53623952036787 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
A diagonal of the square array A217770.
LINKS
FORMULA
G.f.: (1-5*x+7*x^2-3*x^3)/(1-8*x+21*x^2-20*x^3+5*x^4).
a(n) = A081567(n) - A094865(n).
a(n) = A217770(n+1,n).
a(n) = 8*a(n-1) -21*a(n-2) +20*a(n-3) -5*a(n-4) for n>3, a(0)=1, a(1)=3, a(2)=10, a(3)=34.
a(n) = ((3+r)*(5+r)^n-(3-r)*(5-r)^n+(1+r)*(3+r)^n-(1-r)*(3-r)^n)/(4*r*2^n), where r=sqrt(5). [Bruno Berselli, Mar 28 2013]
MATHEMATICA
LinearRecurrence[{8, -21, 20, -5}, {1, 3, 10, 34}, 26] (* Bruno Berselli, Mar 28 2013 *)
CoefficientList[Series[(1-x)^2(1-3x)/((1-3x+x^2)(1-5x+5x^2)), {x, 0, 30}], x] (* Harvey P. Dale, Sep 26 2023 *)
PROG
(Magma) m:=26; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-x)^2*(1-3*x)/((1-3*x+x^2)*(1-5*x+5*x^2)))); // Bruno Berselli, Mar 28 2013
(Maxima) makelist(expand(((3+sqrt(5))*(5+sqrt(5))^n-(3-sqrt(5))*(5-sqrt(5))^n+(1+sqrt(5))*(3+sqrt(5))^n-(1-sqrt(5))*(3-sqrt(5))^n)/(4*2^n*sqrt(5))), n, 0, 25); /* Bruno Berselli, Mar 28 2013 */
CROSSREFS
Cf. A217770.
Sequence in context: A289612 A059738 A094832 * A071725 A026016 A109263
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Mar 24 2013
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 19 14:50 EDT 2024. Contains 371792 sequences. (Running on oeis4.)