aqazwsx1 @ Wed Jan 28, 2009 3:36 pm wrote:
doesn't 2 mod 7 = 6 ? Why is it 2 ?
No, but 2 mod 7 = 9, since 7+2=9 which means that for k=1 the expression 7k+2 evaluates to 9, in case you were looking at the number upside down.
This presumes that you understand some basics on division, which can be structured in the following way:
a divided by b gives a quotient of c and a remainder of d satisfies the following equation:
b*c+d = a
Thus, if we take 2 and divide it by 7, there is a quotient of 0 and a remainder of 2, not 6.