Congruence 1 Assignment Lec6 - Sol Dual
Congruence 1 Assignment Lec6 - Sol Dual
truck. The cans of soda in each box are packed oddly so that there
are 113 cans of soda in each box. Jerry plans to pack the sodas into cases of 12 cans to sell. After
making as many complete cases as possible, how many sodas will Jerry have leftover?
2. If n! denotes the product of the integers 1 through n, what is the remainder when (1!+ 2! + 3! + 4! +
5! + 6!+...) is divided by 9.
3. Find the remainder of (25733 + 46)26 when it is divided by 50
4. Find the remainder when
is divided by 1000.
Solutions:
1. Jerry has 44 boxes of soda in his truck. The cans of soda in each box are packed oddly so that there
are 113 cans of soda in each box. Jerry plans to pack the sodas into cases of 12 cans to sell. After
making as many complete cases as possible, how many sodas will Jerry have leftover?
Sol.
First we not that
44 ≡ 8 (mod 12)
113 ≡ 5 (mod 12)
Thus,
44 . 113 ≡ 8 .5 ≡ 40 ≡ 4 (mod 12)
Meaning there are 4 sodas leftover.
2. If n! denotes the product of the integers 1 through n, what is the remainder when (1!+ 2! + 3! + 4! +
5! + 6!+...) is divided by 9.
Sol.
First of all, we know that k! ≡ 0 (mod 9) for all k ≥ 6.
Thus, we only need to find (1! + 2! + 3! + 4! + 5!) (mod 9).
1! ≡ 1 ( mod 9)
2! ≡ 2 ( mod 9)
3! ≡ 6( mod 9)
4! ≡ 24 ≡ 6 (mod 9)
5! ≡ 5. 6 ≡ 30 ≡ 3 ( mod 9)
Thus, (1! + 2! + 3! + 4! + 5!) ≡ 1 + 2 + 6 + 6 + 3 ≡ 18 ≡ 0 (mod 9)
so the remainder is 0.
is divided by 1000.
Sol.
Note that
999 ≡ 999 …..≡
≡ – 1 (mod 1000).
That is a total of 999 – 3 + 1 = 997 integers, so all those integers multiplied out are congruent to
–1 (mod 1000). Thus the entire expression is congruent to (– 1) (9)(99) = – 891 ≡ 109 (mod 1000).
5. Find the last two digits (in order) of
Sol.
Note that 74 = 1 (mod 100).
Now 32005 = (– 1)2005 = – 1 = 3 (mod 4).
Hence 32005 = 4k + 3 for some positive integer k.
Thus
7. Let R be the set of all possible remainders when a number of the form 2n, n a nonnegative integer, is
divided by 1000. Let S be the sum of the elements in R. Find the remainder when S is divided by
1000.
Sol.
Note that x ≡ y (mod 1000) ⇔ x ≡ y (mdo 125) and x ≡ y ( mod 8). So we must find two integer i
and j such that 2i ≡ 2j (mod 125) and 2i ≡ 2j (mod 8) and i ≠ j. Note that i and j will be greater than 2
since remainder of 1, 2, 4 will not be possible after 2 ( the numbers following will always be
congruent to 0 modulo 8). Note that 2100 ≡ 1 (mod 125) (see Euler’s theorem) and 20, 21, 22,...,299
are all distinct modulo 125 (proof below). Thus i 103 and j = 3 are the first two integer such that
2i ≡ 2j (mod 1000). Note that x ≡ y (mod 1000) ⇔ x ≡ y (mdo 125) and x ≡ y ( mod 8). So we must
find two integer i and j such that 2i ≡ 2j (mod 125) and 2i ≡ 2j (mod 8) and i ≠ j. Note that i and j will
be greater than 2 since remainder of 1, 2, 4 will not be possible after 2 ( the numbers following will
always be congruent to 0 modulo 8). Note that 2100 ≡ 1 (mod 125) (see Euler’s theorem) and 20, 21,
22,...,299 are all distinct modulo 125 (proof below). Thus i 103 and j = 3 are the first two integer
such that 2i ≡ 2j (mod 1000).
9. Find the remainder when the difference between 60002 and 601 is divided by 6.
Sol.
Note that and . So,
Thus,