[go: up one dir, main page]

login
Revision History for A087640 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
To obtain a(n+1), take the square of the n-th partial sum, minus the sum of the first n squared terms, then divide this difference by a(n); for all n>1, starting with a(0)=1, a(1)=1.
(history; published version)
#7 by Harvey P. Dale at Sun Dec 06 11:56:15 EST 2015
STATUS

editing

approved

#6 by Harvey P. Dale at Sun Dec 06 11:56:07 EST 2015
LINKS

<a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (1,3,-1).

MATHEMATICA

CoefficientList[Series[(1-2x^2+x^3)/(1-x-3x^2+x^3), {x, 0, 40}], x] (* or *) LinearRecurrence[{1, 3, -1}, {1, 1, 2, 5}, 40] (* Harvey P. Dale, Dec 06 2015 *)

PROG

for(n=0, 40, print1(a(n), ", "))

STATUS

approved

editing

#5 by Paul D. Hanna at Wed Aug 05 21:18:34 EDT 2015
STATUS

editing

approved

#4 by Paul D. Hanna at Wed Aug 05 21:18:11 EDT 2015
FORMULA

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

G.f.: (1-2x^2+x^3)/(1-x-3x^2+x^3).

G.f.: A052973(x)/(1+x-x^2).

PROG

(PARI) {a(n) = if(n<=1, 1, ( sum(k=1, 0, n-1, a(k))^2 - sum(k=1, 0, n-1, a(k)^2) )/a(n-1))}

for(n=0, 40, print1(a(n), ", "))

STATUS

approved

editing

#3 by Russ Cox at Fri Mar 30 18:36:38 EDT 2012
AUTHOR

_Paul D. Hanna (pauldhanna(AT)juno.com), _, Sep 15 2003

Discussion
Fri Mar 30
18:36
OEIS Server: https://oeis.org/edit/global/213
#2 by N. J. A. Sloane at Sat Nov 10 03:00:00 EST 2007
KEYWORD

nonn,new

nonn

AUTHOR

Paul D . Hanna (pauldhanna(AT)juno.com), Sep 15 2003

#1 by N. J. A. Sloane at Thu Feb 19 03:00:00 EST 2004
NAME

To obtain a(n+1), take the square of the n-th partial sum, minus the sum of the first n squared terms, then divide this difference by a(n); for all n>1, starting with a(0)=1, a(1)=1.

DATA

1, 1, 2, 5, 10, 23, 48, 107, 228, 501, 1078, 2353, 5086, 11067, 23972, 52087, 112936, 245225, 531946, 1154685, 2505298, 5437407, 11798616, 25605539, 55563980, 120581981, 261668382, 567850345, 1232273510, 2674156163, 5803126348

OFFSET

0,3

FORMULA

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

PROG

(PARI) a(n) = ( sum(k=1, n-1, a(k))^2 - sum(k=1, n-1, a(k)^2) )/a(n-1)

CROSSREFS

Cf. A052973.

KEYWORD

nonn

AUTHOR

Paul D Hanna (pauldhanna(AT)juno.com), Sep 15 2003

STATUS

approved