>>659

[(n mod 3)/2]