Consider the number m = (bk ... b0) 10 = bk10k +··· + b2102 + b110 + b0. Since bk10k +··· + b2102 is divisible by 4, we have that m is divisible by 4 if and only if (b1 b0)10 = b110 + b0 is divisible by 4.
Consider the number m =
(bk ... b0)
10 = bk10k + ··· +
b2102 + b110 +
b0. Then m is divisible by 8 if and only if
(b2b1b0)10
is divisible by 8.
Now consider the binary representation of an integer m:
(bk ... b0)
2 = bk2k + ··· +
b222 + b12 +
b0. Since bk2k + ··· +
b223 is divisible by 8, we now have that
m is divisible by 8 if and only if
(b2b1b0)2 = (000)2.
Consider the number m = (bk ... b0) a = bkak + ··· + b2a2 + b1a + b0 = bk(ak - 1) + ··· + b2(a2 - 1) + b1(a-1) + (b0 + ··· + bk).
Since bj(aj - 1) is divisible by a - 1 for all j, we have that m is divisible by a - 1 if and only if b0 + ··· + bk is divisible by a - 1.
Consider the number (abcabc) 10 = a105 + b104 + c103 +a100 + b10 + c = 100100a + 10010b + 1001c = 1001(100a + 10 b + c). The prime factorization of 1001 is 1001 = 7 · 11 · 13, implying that 7, 11 and 13 divide (abcabc)10.
If n = 0 mod 3, then n4 + n2 + 1 = 0 + 0 + 1 = 1 mod 3. Thus n4 + n2 + 1 is not divisible by 3.
If n = 1 mod 3, then n4 + n2 + 1 = 1 + 1 + 1 = 0 mod 3. Thus n4 + n2 + 1 is divisible by 3.
If n = 2 mod 3, then n4 + n2 + 1 = 16 + 4 + 1 = 0 mod 3. Thus n4 + n2 + 1 is divisible by 3.
If for all nonzero x we have xp - 1 = 1 mod p, then every nonzero element x has an inverse, namely xp - 2. Thus p is a prime.
Modulo 37 the inverse of 3 is 25.
The inverse of 4 modulo 14 does not exist.
We have to show that 641 divides 225 + 1, or in other words that 225 + 1 = 0 mod 641.
232 + 1 = (27)4 · 24 + 1 = (27)4 · (- 54) + 1 = - (27 · 5)4 + 1 = - (-1)4 + 1 = 0 mod 641.
The binomial coefficient n choose k equals
Since k is less than p we see that there is no factor p in the denominator, and for k > 0, p is a factor of the numerator. Hence the quotient is divisible by p.
First writing (x + y)p with the help of Newton's binomium and then reducing mod p yields that
The invertible elements of Z/4Z are 1 and 3.
The invertible elements of Z/6Z are 1 and 5.
The invertible elements of Z/12Z are 1, 5, 7 and 11.
The invertible elements of Z/p2Z are all elements except for the multiples of p.
Let x be an integer. The value of x3 mod 9 equals -1, 0 or 1. So x3 + y3 + z3 = -3, -2, -1, 0, 1, 2 or 3 mod 9. In particular, x3 + y3 + z3 = 5 (mod 9) is not possible.
Now let us examine the possible values below 30 that x3 + y3 + z3 can take. By the above, we only have to consider those values that are -3, -2, -1, 0, 1, 2 or 3 mod 9.
0 = 03 + 03 + 03
1 = 13 + 03 + 03
2 = 13 + 13 + 03
3 = 13 + 13 + 13
6 = 23 + (-1)3 + (-1)3
7 = 23 + (-1)3 + 03
8 = 23 + 03 + 03
9 = 23 + 13 + 03
10 = 23 + 13 + 13
Then x = (ak' ... a0)16, where k' is the maximal index with ai not zero.
Suppose the celebration is for the car number x·1000. Then the number of minutes gone by is x·1000· 11.
The celebration should be on Friday between 3 and 5 pm. The number of minutes for Monday 0 am till Friday 3 pm is (96 + 15) · 60. The number of minutes for Monday 0 am till Friday 5 pm is (96 + 17) · 60. The number of minutes in a week is 168 · 60.
This yields the following equation: (96 + 15) · 60 - 1 < x · 1000 · 11 (mod 168 · 60) < (96 + 17) · 60 + 1. The first positive integer x for which this is true, x = 73, is now easily found.
Since the powers of 10 can only take finitely many values mod n, there we will be such m and m'.
Multiplying the first equaltion with 3 yields
x = 1 mod 5.
Multiplying the second equaltion with -2 yields
x = 2 mod 7.
So x = 16 mod 35.
Add the two equation and find
3x = 3 mod 11. So x = 1 mod 11.
But then y = 5 mod 11.
Let d be the inverse of c. Then ca = cb implies dca = dcb and thus a = dca = dcb = b.
Factor 2623 to find the prime factors 43 and 61. Then (p - 1)(q - 1) = 2520. Next we look for a decoding number w satisfying vw = 1 mod (p - 1)(q - 1). In our case the equation is 37w = 1 mod 2520. A solution to this equation is w = 613. Now compute (mod 2623)
The encoded text then reads