login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A087955 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)=2. 3
1, 2, 2, 8, 12, 34, 62, 152, 304, 698, 1458, 3248, 6924, 15210, 32734, 71440, 154432, 336018, 727874, 1581496, 3429100, 7445714, 16151518, 35059560, 76068400, 165095562, 358241202, 777459488, 1687087532, 3661224794, 7945027902 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..30.

Index entries for linear recurrences with constant coefficients, signature (1,3,-1).

FORMULA

a(n) = a(n-1) + 3a(n-2) - a(n-3) for n>3; G.f.: (1+x-3x^2+x^3)/(1-x-3x^2+x^3).

EXAMPLE

a(4)=12 since ((1+2+2+8)^2 - (1^2+2^2+2^2+8^2))/8 = (13^2-73)/8 = 12.

MATHEMATICA

LinearRecurrence[{1, 3, -1}, {1, 2, 2, 8}, 40] (* Harvey P. Dale, Mar 24 2017 *)

CROSSREFS

Sequence in context: A274409 A302118 A014236 * A026537 A089248 A006663

Adjacent sequences:  A087952 A087953 A087954 * A087956 A087957 A087958

KEYWORD

nonn

AUTHOR

Paul D. Hanna, Sep 16 2003

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 17 14:57 EST 2020. Contains 330958 sequences. (Running on oeis4.)