OFFSET
0,3
FORMULA
a(n) = (2n-1) mod 6, for n > 0. - Wesley Ivan Hurt, Apr 23 2014
MAPLE
a:= n-> `if`(n=0, 0, irem(2*n-1, 6)): seq(a(n), n=0..99); # Zerinvary Lajos, Nov 30 2006
MATHEMATICA
Table[Mod[2 n - 1, 6] - 5 Floor[1/(n+1)], {n, 0, 100}] (* Wesley Ivan Hurt, Apr 23 2014 *)
CROSSREFS
KEYWORD
AUTHOR
N. J. A. Sloane, Dec 11 1996
STATUS
approved