OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,1,2)
FORMULA
a(n+1)-2a(n)=period 4:repeat 0, -1, -2, 3.
O.g.f.: (x-1)*(2*x^2+2*x+1)/((2*x-1)(1+x)(x^2+1)). a(n) = A056594(n+3)+((-1)^n+2^(n+1))/3. - R. J. Mathar, May 22 2008
MATHEMATICA
LinearRecurrence[{1, 1, 1, 2}, {1, 2, 3, 4}, 30] (* Harvey P. Dale, May 22 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul Curtz, May 20 2008
EXTENSIONS
More terms from R. J. Mathar, May 22 2008
STATUS
approved