OFFSET
1,3
COMMENTS
Essentially the same as A145577.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
FORMULA
a(n) = A144390(n) mod 9.
a(9n+2)+a(9n+3)+a(9n+4) = a(9n+5)+a(9n+6)+a(9n+7) = a(9n+8)+a(9n+9)+a(9n+10) = 12.
a(n+4)-a(n+1) = period length 9 (repeat 6,-3,-3,-3,6,-3,-3,-3,6).
PROG
(PARI) a(n)=[1, 0, 5, 7, 6, 2, 4, 3, 8][n%9+1] \\ Charles R Greathouse IV, Jun 02 2011
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, Oct 11 2008
STATUS
approved