login
A175921
Period 5: repeat [1, 2, 2, -1, 1].
1
1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1, 1, 2, 2, -1, 1
OFFSET
1,2
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