First evaluate M = 2 ⋅ 3 ⋅ 5 ⋅ 7 ⋅ 11 ⋅ 13 + 1 = 30031. To check if this is a prime or composite, we need to check for factors up to \sqrt{ 3}0031 ≈ 173.3 and hence up to 173.
Using Eratosthenes’s sieve method to search through integers:
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
Once we reach the prime 59, we find 59\mathrel{∣}30031 and thus 30031 is not a prime. Its factorization is \mathbf{59 ⋅ 509}.
The above could be solved by any reasonable method. As an example of the sieve method, consider the last problem of factoring 885.
2 | 3 | 4 | 5 | |
6 | 7 | 8 | 9 | 10 |
We start to list numbers up to \sqrt{885} ≈ 29.7 but only list them one line at a time. For the first prime, 2 ∤ 885. Then 3\mathrel{∣}885 and 885∕3 = 295. Only one factor of 3 can be pulled out, so 885 = 3 ⋅ 295. Now we only need to check numbers up to \sqrt{295} ≈ 17.2. The next prime 5\mathrel{∣}295, and 295∕5 = 59. Because 5 ∤ 59, only one factor of five can be pulled out. Now 885 = 3 ⋅ 5 ⋅ 59.
A previous problem showed that 59 is a prime, so we could stop here. Or if we didn’t know that 59 is prime, we need to check for factors up to \sqrt{ 59} ≈ 7.7. Only one more prime, 7, is in that range, and 7 ∤ 59, so 59 is prime.
The prime factorization is \mathbf{885 = 3 ⋅ 5 ⋅ 59}.
The operation table is
+ | 0 | 1 | 2 | 3 | 4 |
0 | 0 | 1 | 2 | 3 | 4 |
1 | 1 | 2 | 3 | 4 | 0 |
2 | 2 | 3 | 4 | 0 | 1 |
3 | 3 | 4 | 0 | 1 | 2 |
4 | 4 | 0 | 1 | 2 | 3 |
Every entry is an integer no less than zero and less than five, so the operation as defined is closed. Considering congruence classes rather than clocks, every integer is in one congruence class, so operations that produce integers must be closed.
The table is symmetric along its diagonal (0 ⋅ 0, 1 ⋅ 1, \mathop{\mathop{…}}), so the operation is commutative. Adding 0 + a ≡ a\kern 18mu ({\rm mod}\kern 6mu 5), so zero is the additive identity. And adding a + (5 - a) ≡ 0\kern 18mu ({\rm mod}\kern 6mu 5), so \mathbf{5 - a} is the additive inverse.
These can be found either with the rules in the text or by evaluating each number:
Using the method described in class:
Take a familiar incomplete integer, -679-. Using the expression of -679- as N = 1{0}^{4} ⋅ {x}_{4} + {x}_{0} + 6790, use 8\mathrel{∣}N to find {x}_{0}. Given that, use 9\mathrel{∣}N to find {x}_{4}. Now if 72 turkeys cost $-679-, what is the total?
If 8\mathrel{∣}N, then we need only check the last three digits. So 790 + {x}_{0} = 8 ⋅ k for some k. There are only four values of {x}_{0} worth checking: 0, 2, 4, and 8. Of these, only 8\mathrel{∣}792, so {x}_{0} = 2.
Now 9\mathrel{∣}N implies 9\mathrel{∣}{x}_{4} ⋅ 1{0}^{4} + 6792. Adding just the digits suffices, so we must solve {x}_{4} + 6 + 7 + 9 + 2 ≡ 0\kern 18mu ({\rm mod}\kern 6mu 9). Hence {x}_{4} + 6 ≡ 0\kern 18mu ({\rm mod}\kern 6mu 9), and {x}_{4} ≡-6 ≡ 3\kern 18mu ({\rm mod}\kern 6mu 9). The only such {x}_{4} that satisfies 0 ≤ {x}_{4} ≤ 9 is {x}_{4} = 3.
Thus \mathbf{{x}_{4} = 3}, \mathbf{{x}_{0} = 2} and the total price is $367.92. The price per turkey is $5.11.