OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, -1, 1).
FORMULA
From R. J. Mathar, Apr 13 2010:
a(n) = 2^(n-1) mod 20;
a(n) = a(n-1) - a(n-2) + a(n-3), n > 5.
G.f.: x*(3*x^2+5*x^3+10*x^4+x+1)/((1-x)*(1+x^2)).
PROG
(Sage) [power_mod(2, n, 20)for n in range(0, 85)] # Zerinvary Lajos, Nov 03 2009
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Herman Jamke (hermanjamke(AT)fastmail.fm), Jul 13 2004
STATUS
approved