OFFSET
0,4
COMMENTS
For n>2, a(n) = 2 * A068031(n).
LINKS
Sophie LeBlanc, Jan 20 2002, sci.math posting
Index entries for linear recurrences with constant coefficients, signature (2,0,0,0,2,-4).
FORMULA
s(k+1) = 2s(k) if k == 2, 3, or 4 mod 5, 2s(k)-2^(k/5) if k == 0 mod 5, 2s(k)-2^((k-1)/5) if k == 1 mod 5.
G.f.: -(x^2-x+1)*(2*x^3+2*x^2-1) / ((2*x-1)*(2*x^5-1)). - Colin Barker, Dec 22 2012
MAPLE
MATHEMATICA
LinearRecurrence[{2, 0, 0, 0, 2, -4}, {1, 1, 1, 2, 4, 8}, 40] (* Jean-François Alcover, Mar 06 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 11 2002
STATUS
approved