login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A122573
Expansion of x*(1 + x)*(1 - 3*x^2)/(1 - 4*x^2 + x^4).
1
1, 1, 1, 1, 3, 3, 11, 11, 41, 41, 153, 153, 571, 571, 2131, 2131, 7953, 7953, 29681, 29681, 110771, 110771, 413403, 413403, 1542841, 1542841, 5757961, 5757961, 21489003, 21489003, 80198051, 80198051, 299303201, 299303201, 1117014753
OFFSET
1,5
FORMULA
G.f.: x*(1 + x)*(1 - 3*x^2)/(1 - 4*x^2 + x^4).
a(n) = 3*b(n) + b(n-1) - 11*b(n-2) - 3*b(n-3), where a(0) = a(1) = 1, b(n) = (1/2)*(1 + (-1)^n)*c((n+2)/2), and c(n) = ((2+sqrt(3))^n - (2-sqrt(3))^n)/(2*sqrt(3)) (A001353). - G. C. Greubel, Jul 10 2021
PROG
(Magma) [n le 4 select 1 else 4*Self(n-2) - Self(n-4): n in [1..41]]; // G. C. Greubel, Jul 10 2021
(Sage)
def a(n): return 1 if (n<5) else 4*a(n-2) - a(n-4)
[a(n) for n in (1..40)] # G. C. Greubel, Jul 10 2021
CROSSREFS
Sequence in context: A146828 A146583 A146458 * A230011 A136123 A045495
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Sep 17 2006
EXTENSIONS
Edited by G. C. Greubel, Jul 10 2021
STATUS
approved