Professional Documents
Culture Documents
Number Theory
Everything else
Misha Lavrov
Competition-level problems
AIME, 1991. How many fractions ba are there, for which ab = 20!
(when written in simplest terms)? How many of these satisfy
0 < ba < 1?
Ukrainian MO, 2002. Solve
for integers m, n.
British MO, 2002. Find all solutions in positive integers a, b, c to
the equation a! · b! = a! + b! + c!.
Putnam, 2000. Prove that the expression gcd(n,k) n
n k is an integer
for all pairs of integers n ≤ k ≤ 1.
Solving integer equations using divisors The totient function and Euler’s theorem
Competition-level problems
Solutions
Competition-level problems
Solutions
Competition-level problems
Solutions
Competition-level problems
Solutions
Competition-level problems
Solutions
a! · b! − b! − c! = a!
Competition-level problems
Solutions
n
Putnam, 2000. Our goal is to show that gcd(n, k) k is divisible by
n.
For all primes p, suppose p x divides n and y
p divides k. xIf x ≤ y
n
then all is good, because at gcd(n, k) k is divisible by p .
n−1
If x > y , we can use the following trick: kn = kn k−1
, and so we
can rewrite
gcd(n, k) n gcd(n, k) n − 1
= .
n k k k −1
PUMaC, 2010. Find the largest positive integer n such that nφ(n)
is a perfect square.
Solving integer equations using divisors The totient function and Euler’s theorem
aφ(n) ≡ 1 (mod n)
and therefore
am ≡ am mod φ(n) (mod n).
30 = 1, 31 = 3, 32 = 9, 33 = 27 ≡ 7, 34 = 81 ≡ 1, . . .
Solving integer equations using divisors The totient function and Euler’s theorem
aφ(n) ≡ 1 (mod n)
and therefore
am ≡ am mod φ(n) (mod n).
30 = 1, 31 = 3, 32 = 9, 33 = 27 ≡ 7, 34 = 81 ≡ 1, . . .
Competition problems
(Note: this theorem is also useful for small things, like knowing
that 14 ≡ 24 ≡ 34 ≡ 44 ≡ 1 (mod 5) last week. These are
problems where Euler’s theorem is the main focus.)
Exercise. Compute 100100 mod 13.
Texas A&M, 2008. Find the last three digits of 20072008 .
3
..
3.
VTRMC, 2012. Find the last two digits of 3| {z } .
2012
is divided by 7.
Solving integer equations using divisors The totient function and Euler’s theorem
Competition problems
Solutions
But here, the first three terms are all divisible by 1000, so all we
need to worry about is −4 · 50 + 1 ≡ 801 (mod 1000).
Solving integer equations using divisors The totient function and Euler’s theorem
Competition problems
Solutions
3
. ..
VTRMC, 2012. Write 3 ↑↑ n for 33with n 3’s. We use Euler’s
theorem recursively: for 100 we need φ(100) = 40, for which we
need φ(40) = 16, for which we need φ(16) = 8, for which we need
φ(8) = 4, for which we need φ(4) = 2.
Since 3 is odd, 3 ↑↑ 2007 ≡ 1 (mod 2).
So 3 ↑↑ 2008 ≡ 31 ≡ 3 (mod 4).
So 3 ↑↑ 2009 ≡ 33 ≡ 27 ≡ 3 (mod 8).
So 3 ↑↑ 2010 ≡ 33 ≡ 27 ≡ 11 (mod 16).
So 3 ↑↑ 2011 ≡ 311 ≡ 27 (mod 40).
So 3 ↑↑ 2012 ≡ 327 ≡ 87 (mod 100).
Solving integer equations using divisors The totient function and Euler’s theorem
Competition problems
Solutions
{z1 + 1 + · · · + 2} mod7
2| + 1 + 1 + 2 +
2011
2010
which is 3 (2 + 1 + 1) + 2 ≡ 1 (mod 7).