OFFSET

0,2

COMMENTS

Shares many elements with A103311, as already indicated by the similarity of the two generating functions. First differences are essentially in A105371. - R. J. Mathar, May 02 2008

The longer of the two recurrences ensures that the sequence (like A133476) equals its 5th differences. - R. J. Mathar, May 02 2008

LINKS

Paolo Xausa, Table of n, a(n) for n = 0..1000

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

FORMULA

From R. J. Mathar, May 02 2008: (Start)

O.g.f.: (x^2-x+1)/(x^4-2*x^3+4*x^2-3*x+1).

a(n) = 5a(n-1)-10a(n-2)+10a(n-3)-5a(n-4)+2a(n-5).

a(n) = 3a(n-1)-4a(n-2)+2a(n-3)-a(n-4). (End)

MATHEMATICA

LinearRecurrence[{3, -4, 2, -1}, {1, 2, 3, 3}, 50] (* Paolo Xausa, Dec 05 2023 *)

PROG

(PARI) a=[1, 2, 3, 3]; for(i=1, 99, a=concat(a, 3*a[#a]-4*a[#a-1]+2*a[#a-2]-a[#a-3])); a \\ Charles R Greathouse IV, Jun 02 2011

CROSSREFS

KEYWORD

sign,easy

AUTHOR

Paul Curtz, May 01 2008

EXTENSIONS

Edited by R. J. Mathar, May 02 2008

STATUS

approved