OFFSET
0,1
COMMENTS
The formula for the singular sequence, i.e., just each unique term of the sequence (without duplication), is: a(n) = 1/10 (16-(-4)^n). - Harvey P. Dale, Jun 12 2013
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,-4,4)
FORMULA
a(2n) = a(2n+1) = 2*(-1)^n*A109499(n).
G.f. ( -2-6*x^2 ) / ( (x-1)*(4*x^2+1) ). - R. J. Mathar, Feb 06 2011
a(0)=2, a(1)=2, a(2)=0, a(n) = a(n-1)-4*a(n-2)+4*a(n-3). - Harvey P. Dale, Jun 12 2013
MATHEMATICA
CoefficientList[Series[(-2-6x^2)/((x-1)(4x^2+1)), {x, 0, 50}], x] (* or *) LinearRecurrence[{1, -4, 4}, {2, 2, 0}, 50] (* Harvey P. Dale, Jun 12 2013 *)
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Curtz, Nov 01 2009
STATUS
approved