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”).

A087956
a(n) is the square of the n-th partial sum minus the n-th partial sum of the squares, divided by a(n-1), for all n>=1, starting with a(0)=1, a(1)=3.
2
1, 3, 2, 11, 14, 45, 76, 197, 380, 895, 1838, 4143, 8762, 19353, 41496, 90793, 195928, 426811, 923802, 2008307, 4352902, 9454021, 20504420, 44513581, 96572820, 209609143, 454814022, 987068631, 2141901554, 4648293425, 10086929456
OFFSET
0,2
FORMULA
a(n) = a(n-1) + 3a(n-2) - a(n-3) for n>3; G.f.: (1+2x-4x^2+x^3)/(1-x-3x^2+x^3).
EXAMPLE
a(4)=14 since ((1+3+2+11)^2 - (1^2+3^2+2^2+11^2))/11 = (17^2-135)/11 = 14.
PROG
(PARI) a(0)=1; a(1)=3; for(n=2, 50, a(n)=((sum(k=0, n, a(k))^2-sum(k=0, n, a(k)^2))/a(n-1))
CROSSREFS
Essentially the same as A052973.
Sequence in context: A194608 A297870 A052973 * A116391 A305491 A358589
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Sep 16 2003
STATUS
approved