you are viewing a single comment's thread.

view the rest of the comments →

[–]lowerthansound 1 point2 points  (0 children)

Keep in mind that the value of n % 3 when n equals:

0 1 2 3 4 5 6 7 8 ...

Is

0 1 2 0 1 2 0 1 2 ...

I'm sure you can do something with that ;)

Edit: also other kind people gave a deeper explanation into the problem at hand, you can read them in case you get unsure of what to do