OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,1).
MATHEMATICA
PadRight[{}, 120, {1, 2, 2, -1, 1}] (* Harvey P. Dale, Dec 30 2016 *)
PROG
(PARI) a(n)=[1, 1, 2, 2, -1][n%5+1] \\ Charles R Greathouse IV, Mar 12 2017
CROSSREFS
KEYWORD
sign,easy,less
AUTHOR
Jaroslav Krizek, Oct 17 2010
EXTENSIONS
Edited by Joerg Arndt, Sep 16 2013
STATUS
approved