Dive into the queen of mathematics — the deep, beautiful properties of integers, primes, divisibility, and congruences.
Find the remainder when \(7^{100}\) is divided by 13.
Step 1: Since 13 is prime and \(\gcd(7, 13) = 1\), by Fermat's Little Theorem: \(7^{12} \equiv 1 \pmod{13}\).
Step 2: Write \(100 = 12 \times 8 + 4\), so \(7^{100} = (7^{12})^8 \cdot 7^4 \equiv 1^8 \cdot 7^4 \equiv 7^4 \pmod{13}\).
Step 3: Compute \(7^2 = 49 \equiv 49 - 3(13) = 49 - 39 = 10 \pmod{13}\).
Step 4: \(7^4 = (7^2)^2 \equiv 10^2 = 100 \equiv 100 - 7(13) = 100 - 91 = 9 \pmod{13}\).
Answer: The remainder is \(9\)
Find \(\gcd(252, 198)\) using the Euclidean algorithm. Then find integers \(x, y\) such that \(252x + 198y = \gcd(252, 198)\).
Step 1 (Euclidean Algorithm):
\(252 = 1 \times 198 + 54\)
\(198 = 3 \times 54 + 36\)
\(54 = 1 \times 36 + 18\)
\(36 = 2 \times 18 + 0\)
So \(\gcd(252, 198) = 18\).
Step 2 (Back-substitution):
\(18 = 54 - 1 \times 36\)
\(= 54 - 1 \times (198 - 3 \times 54) = 4 \times 54 - 1 \times 198\)
\(= 4 \times (252 - 1 \times 198) - 1 \times 198 = 4 \times 252 - 5 \times 198\)
Step 3: Verify: \(4(252) - 5(198) = 1008 - 990 = 18\). Correct.
Answer: \(\gcd(252, 198) = 18\), with \(x = 4\) and \(y = -5\)
Compute \(\phi(360)\) and use it to find \(7^{100} \mod 360\).
Step 1: Factor: \(360 = 2^3 \times 3^2 \times 5\).
Step 2: Apply the totient formula: $$\phi(360) = 360\left(1 - \frac{1}{2}\right)\left(1 - \frac{1}{3}\right)\left(1 - \frac{1}{5}\right) = 360 \times \frac{1}{2} \times \frac{2}{3} \times \frac{4}{5} = 96$$
Step 3: Since \(\gcd(7, 360) = 1\), by Euler's theorem: \(7^{96} \equiv 1 \pmod{360}\).
Step 4: Write \(100 = 96 + 4\), so \(7^{100} = 7^{96} \cdot 7^4 \equiv 1 \cdot 7^4 \pmod{360}\).
Step 5: Compute: \(7^2 = 49\). \(7^4 = 49^2 = 2401\). \(2401 = 6 \times 360 + 241\), so \(7^4 \equiv 241 \pmod{360}\).
Answer: \(\phi(360) = 96\) and \(7^{100} \equiv 241 \pmod{360}\)
Find all positive integer solutions to \(3x + 5y = 47\).
Step 1: Find one solution by inspection. Try \(x = 4\): \(12 + 5y = 47 \Rightarrow y = 7\). So \((4, 7)\) works.
Step 2: General solution of \(3x + 5y = 47\): \(x = 4 + 5t\), \(y = 7 - 3t\) for any integer \(t\).
Step 3: Require \(x > 0\): \(4 + 5t > 0 \Rightarrow t > -\frac{4}{5} \Rightarrow t \geq 0\) (since \(t\) is an integer).
Step 4: Require \(y > 0\): \(7 - 3t > 0 \Rightarrow t < \frac{7}{3} \Rightarrow t \leq 2\).
Step 5: So \(t \in \{0, 1, 2\}\), giving solutions: \((4, 7)\), \((9, 4)\), \((14, 1)\).
Answer: \((x, y) = (4, 7),\; (9, 4),\; (14, 1)\)
Find the smallest positive integer \(n\) such that \(n \equiv 2 \pmod{3}\), \(n \equiv 3 \pmod{5}\), and \(n \equiv 4 \pmod{7}\).
Step 1: From \(n \equiv 2 \pmod{3}\): \(n = 3k + 2\) for some integer \(k\).
Step 2: Substitute into \(n \equiv 3 \pmod{5}\): \(3k + 2 \equiv 3 \pmod{5} \Rightarrow 3k \equiv 1 \pmod{5}\). Since \(3 \times 2 = 6 \equiv 1 \pmod{5}\), we get \(k \equiv 2 \pmod{5}\), so \(k = 5j + 2\).
Step 3: Then \(n = 3(5j + 2) + 2 = 15j + 8\).
Step 4: Substitute into \(n \equiv 4 \pmod{7}\): \(15j + 8 \equiv 4 \pmod{7} \Rightarrow j + 1 \equiv 4 \pmod{7} \Rightarrow j \equiv 3 \pmod{7}\).
Step 5: So \(j = 7m + 3\) and \(n = 15(7m + 3) + 8 = 105m + 53\).
Step 6: The smallest positive value is \(m = 0\): \(n = 53\). Verify: \(53 = 17(3)+2\), \(53 = 10(5)+3\), \(53 = 7(7)+4\).
Answer: \(n = 53\)
Show that 496 is a perfect number. What is the form of all even perfect numbers according to the Euclid-Euler theorem?
Step 1: Factor 496: \(496 = 2^4 \times 31\).
Step 2: List all proper divisors: 1, 2, 4, 8, 16, 31, 62, 124, 248.
Step 3: Sum: \(1 + 2 + 4 + 8 + 16 + 31 + 62 + 124 + 248 = 496\). Since the sum of proper divisors equals the number, 496 is perfect.
Step 4: Note that \(496 = 2^4(2^5 - 1) = 16 \times 31\), where \(p = 5\) and \(2^5 - 1 = 31\) is indeed prime (a Mersenne prime).
Step 5: By the Euclid-Euler theorem, all even perfect numbers have the form \(2^{p-1}(2^p - 1)\) where \(2^p - 1\) is a Mersenne prime.
Answer: 496 is perfect (sum of proper divisors = 496). Even perfect numbers have the form \(2^{p-1}(2^p - 1)\) where \(2^p - 1\) is prime.
How many positive divisors does \(10!\) have?
Step 1: Find the prime factorization of \(10!\) using Legendre's formula. For each prime \(p\), the exponent is \(\sum_{i=1}^{\infty}\lfloor\frac{10}{p^i}\rfloor\).
Step 2: For \(p = 2\): \(\lfloor\frac{10}{2}\rfloor + \lfloor\frac{10}{4}\rfloor + \lfloor\frac{10}{8}\rfloor = 5 + 2 + 1 = 8\).
For \(p = 3\): \(\lfloor\frac{10}{3}\rfloor + \lfloor\frac{10}{9}\rfloor = 3 + 1 = 4\).
For \(p = 5\): \(\lfloor\frac{10}{5}\rfloor = 2\). For \(p = 7\): \(\lfloor\frac{10}{7}\rfloor = 1\).
Step 3: So \(10! = 2^8 \times 3^4 \times 5^2 \times 7^1\).
Step 4: Number of divisors \(= (8+1)(4+1)(2+1)(1+1) = 9 \times 5 \times 3 \times 2 = 270\).
Answer: \(10!\) has 270 positive divisors
Find the last two digits of \(3^{2026}\).
Step 1: We need \(3^{2026} \pmod{100}\). Since \(\phi(100) = 100(1 - \frac{1}{2})(1 - \frac{1}{5}) = 40\) and \(\gcd(3, 100) = 1\), Euler's theorem gives \(3^{40} \equiv 1 \pmod{100}\).
Step 2: \(2026 = 40 \times 50 + 26\), so \(3^{2026} \equiv 3^{26} \pmod{100}\).
Step 3: Compute \(3^{26}\) by repeated squaring modulo 100:
\(3^2 = 9\), \(3^4 = 81\), \(3^8 = 81^2 = 6561 \equiv 61\), \(3^{16} = 61^2 = 3721 \equiv 21\).
Step 4: \(3^{26} = 3^{16} \times 3^8 \times 3^2 = 21 \times 61 \times 9\).
\(21 \times 61 = 1281 \equiv 81 \pmod{100}\). Then \(81 \times 9 = 729 \equiv 29 \pmod{100}\).
Answer: The last two digits of \(3^{2026}\) are 29
Prove that no perfect square ends in the digits 2, 3, 7, or 8 (in base 10).
Step 1: The last digit of \(n^2\) depends only on the last digit of \(n\). We check all possible last digits \(d = 0, 1, \ldots, 9\):
\(0^2 = 0\), \(1^2 = 1\), \(2^2 = 4\), \(3^2 = 9\), \(4^2 = 16 \to 6\), \(5^2 = 25 \to 5\), \(6^2 = 36 \to 6\), \(7^2 = 49 \to 9\), \(8^2 = 64 \to 4\), \(9^2 = 81 \to 1\).
Step 2: The set of possible last digits of perfect squares is \(\{0, 1, 4, 5, 6, 9\}\).
Step 3: The digits 2, 3, 7, and 8 are not in this set. Therefore, no perfect square can end in 2, 3, 7, or 8.
Answer: Proven by exhaustive check of all residues mod 10. The only quadratic residues mod 10 are \(\{0, 1, 4, 5, 6, 9\}\), excluding 2, 3, 7, 8.
Prove that if \(n > 1\) is composite, then \(n\) has a prime factor \(\leq \sqrt{n}\).
Step 1: Since \(n\) is composite, we can write \(n = ab\) where \(1 < a \leq b < n\).
Step 2: Suppose for contradiction that \(a > \sqrt{n}\). Then \(b \geq a > \sqrt{n}\), so \(ab > \sqrt{n} \cdot \sqrt{n} = n\). But \(ab = n\), a contradiction.
Step 3: Therefore \(a \leq \sqrt{n}\). Since \(a > 1\), it has a prime factor \(p\) with \(p \leq a\).
Step 4: This prime \(p\) divides \(a\), which divides \(n\), so \(p\) is a prime factor of \(n\) with \(p \leq a \leq \sqrt{n}\).
Answer: Proven: every composite \(n > 1\) has a prime factor \(\leq \sqrt{n}\).
Find the remainder when \(12!\) is divided by 13.
Step 1: Wilson's Theorem states that if \(p\) is prime, then \((p-1)! \equiv -1 \pmod{p}\).
Step 2: Since 13 is prime: \(12! \equiv -1 \pmod{13}\).
Step 3: Now \(-1 \equiv 12 \pmod{13}\).
Step 4: Therefore \(12! \equiv 12 \pmod{13}\), meaning the remainder is 12.
Answer: The remainder when \(12!\) is divided by 13 is \(12\)
Prove that there are infinitely many primes of the form \(4k + 3\).
Step 1: Assume for contradiction that there are only finitely many primes of the form \(4k + 3\): call them \(p_1, p_2, \ldots, p_n\) (note \(p_1 = 3\)).
Step 2: Consider \(N = 4p_1 p_2 \cdots p_n - 1\). Then \(N \equiv -1 \equiv 3 \pmod{4}\), so \(N\) is of the form \(4k + 3\).
Step 3: Every odd number greater than 1 is a product of odd primes. Each odd prime is either \(\equiv 1 \pmod{4}\) or \(\equiv 3 \pmod{4}\).
Step 4: A product of primes all \(\equiv 1 \pmod{4}\) is itself \(\equiv 1 \pmod{4}\). Since \(N \equiv 3 \pmod{4}\), at least one prime factor of \(N\) must be \(\equiv 3 \pmod{4}\).
Step 5: But \(N = 4p_1 p_2 \cdots p_n - 1\), so for any \(p_i\) in our list, \(N \equiv -1 \pmod{p_i}\), meaning \(p_i \nmid N\). This prime factor of the form \(4k+3\) is not in our list -- a contradiction.
Answer: Proven by contradiction: there are infinitely many primes of the form \(4k + 3\).