by RonPurewal Mon Dec 10, 2012 7:20 am
ok, the deal is basically this.
if you are counting up consecutive integers, then ...
... the remainders when you divide those integers by 2 are 1, 0, 1, 0, 1, 0, etc.
... the remainders when you divide those integers by 3 are 1, 2, 0, 1, 2, 0, 1, 2, 0, etc.
... the remainders when you divide those integers by 3 are 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, etc.
now, take a look at the 2 statements. together, they say that one of your remainders is 1, and that the NEXT remainder is 0.
if you see the patterns here, it should be clear pretty quickly that only x = 2 is going to do that.
(if you are dividing by any bigger number, then, after getting a remainder of 1, the next remainder you get will be 2, not 0.)
so, with both statements together, you know that x has to be 2.
once you've got that, you actually have all eight remainders (in order, they would be 1, 0, 1, 0, 1, 0, 1, 0).