Professional Documents
Culture Documents
USA Mathematical Talent Search
USA Mathematical Talent Search
USA Mathematical Talent Search
1/1/12. Determine the smallest five-digit positive integer N such that 2N is also a five-digit inte
ger and all ten digits from 0 to 9 are found in N and 2N.
Second step: Solve for N and 2N. A cannot equal 0 since N would then be considered a 4 digit
number and to satisfy the conditions N needs to be a 5 digit number. The next smallest number
that A could equal is 1. Therefore, A will be assumed equal to 1 until all possible solutions with A
= 1 have been proved false. F = 2 since 2A = 2(1) = 2. B will be assumed equal to 3 since that is
the smallest number not already used. C will be assumed equal to 4. Then G = 6 since 2B = 2(3)
= 6. D will be assumed to equal 5. H = 9 since 2C + carry over from 2D = 2(4) + 1 = 9. But, if E
= 8, 2(D) + carry over = 2(5) + 1 = 11, so I = 1. That is a contradiction because A also equals 1
and each number is supposed to be used once. Also, if E = 0, 2E would also equal 0, and another
contradiction would occur. Therefore, D ≠ 5 . D will then be assumed equal to 7. That is because
G already equals 6, therefore 7 is the next smallest number. Then H = 9 since 2C + carryover =
2(4) + 1 = 9. Then E would have to equal 8 because if E = 0 then 2E would also equal 0 and a
contradiction would arise. But, if E = 8 then 2E = 2(8) = 16 and therefore J = 6, another contra
diction occurs since G already equals 6. Therefore, D ≠ 7 . D will then be assumed to equal 8.
Then H = 9 since 2C + carry over = 2(4) + 1 = 9. E will then be assumed to equal 5. Then 2E =
2(5) = 10, but J would only equal the last digit which is 0, I would then equal 2D + carry over =
2(8) + 1 = 17, so I = 7. That solution satisfies the specified conditions.
Editor’s Comment: We are indebted to Dr. Béla Bajnok of Gettysburg College for posing this
problem and for his continuing assistance with USAMTS. Dr. Bajnok claims the next smallest
solutions (after 13485) are 13548, 13845, and 14538. He notes they all use the same five digits.
24
2
2/1/12. It was recently shown that 2 + 1 is not a prime number. Find the four rightmost dig
its of this number.
Solution 1 by Christopher Lyons (12/CA): This problem is equivalent to asking, “What is the
24
2
remainder when 2 + 1 is divided by 10,000?” Since we are only concerned with the remain
der, I chose to use the mathematical tool that is all about remainders: the congruence. My strategy
in attacking this problem is to use the rules of congruences to build up from
1 24
2 2
2 = 4 ≡ 4 ( mod 10,000 ) to 2 = 7536 ( mod 10,000 ) , and to add 1 to get
24
2
2 + 1 = 7537 ( mod 10,000 ) .
1
2
We start by evaluating the congruence of 2 modulo 10,000. In fact, throughout the description
of this problem, all congruences will be modulo 10,000.
1
2
2 = 4 ≡ 4 ( mod 10,000 )
Since we can multiply congruences just like equations, we will multiply this congruence by itself.
But first we must show an identity that will be useful for the rest of the problem:
n n n n n n+1
2 2 (2 + 2 ) 2( 2 ) 2
2 ×2 = 2 = 2 = 2
n n n+1 6 6 7
2 2 2 2 2 2
Thus, when we multiply 2 by 2 , we get 2 . For example 2 ×2 = 2 . We can
1 24
2 2
apply this identity repeatedly with congruences to get all the way from 2 to 2 . Let us write
out the first few steps:
2 1 1
2 2 2
2 = 2 ×2 = 4 ×
4 = 16
2
2
2 = 16
3
2 2
2 2 2
2 = 2 ×2 = 16 × 16 = 256
2
2 = 256
4 3 3
2 2 2
2 = 2 ×2 = 256 × 256 = 65536 ≡ 5536 ( mod 10,000 )
4
2
2 ≡ 5536
5 4 4
2 2 2
2 = 2 ×2 = 65536 × 65536 = 30647296 ≡ 7296
5
2
2 ≡ 7296
6 7 24
2 2 2
We continue this process, obtaining the congruences of 2 , 2 , ..., 2 . The following is a
table of all these congruences. (I used an eight-digit hand held calculator to find these values,
since this was the easiest way for me.)
1 9 17
2
2 ≡4 2
2
≡ 4096 2
2
≡ 3696
2 10 18
2 2 2
2 ≡ 16 2 ≡ 7216 2 ≡ 416
3 11 19
2 2 2
2 ≡ 256 2 ≡ 656 2 ≡ 3056
4 12 20
2 2 2
2 ≡ 5536 2 ≡ 336 2 ≡ 9136
5 13 21
2 2 2
2 ≡ 7296 2 ≡ 2896 2 ≡ 6496
6 14 22
2 2 2
2 ≡ 1616 2 ≡ 6816 2 ≡ 8016
7 15 23
2 2 2
2 ≡ 1456 2 ≡ 7856 2 ≡ 6256
8 16 24
2 2 2
2 ≡ 9936 2 ≡ 6736 2 ≡ 7536
Now that we have obtained this last congruence, we may add it to another congruence to produce
the desired result:
24
2
2 + 1 ≡ 7536 + 1 ≡ 7537 ( mod 10,000 ) .
24
2
The four rightmost digits of 2 + 1 are 7537.
Since when you multiply numbers which have the same base but different powers you add the
2 3 2+3
powers (for example 2 × 2 = 2 ), it would be easy to find numbers whose rightmost four
digits I should multiply by looking for large numbers expressed as powers of 2, finding the ones
24
whose powers add up to 2 , and then multiplying the rightmost 4 digits of these numbers to get
24
2
the rightmost four digits of 2 .
Conveniently, such a list of known powers of two exists in the form of Mersenne prime numbers.
x
These are a special type of prime numbers that are expressed as 2 – 1 . Many such prime num
bers are known and I used a web page
http://www.isthe.com/chongo/tech/math/prime/mersenne.html
to find numerical values for these primes. I chose the powers of 2 whose powers added up to the
24
exponent 2 = 16777216 . I ignored the -1 because when I chose the powers I would use I
obtained the last four digits of their numerical value, added one to each, and then multiplied them
24
2
out to get the last four digits of 2 . The powers which I used and their numerical value are as
follows:
:
From multiplying the last four digits of the numerical value of each power, I obtained a number
24
2
whose last four digits were 7,536. This means the last four digits of 2 are 7,536.
24
2
Therefore, the last four digits of 2 + 1 are 7,537.
Answer: 7537
Proof: [See the Editor’s Comment below for a quick review of some of these terms and concepts.]
24 9 2
Note that 2 ≡ ( 2 ) ( 64 ) ≡ 144 × 64 = 9216 ≡ 216 ( mod 500 ) . By Euler’s Theorem,
24
2 x 4 24 4
2 x 24 2 216
2 ≡ 2 (mod 625), if 2 ≡ x(mod 500) . It follows that 2 ≡2 (mod 625) . By doubling
27
for a while we find 2 = 134217728 ≡ 228 ( mod 625 ) , and so
216 8 2 4 4 2 2 2
2 ≡ 228 ≡ (228 ) ≡ 109 ≡ (109 ) ≡ 6 ≡ 36 ( mod 625 ) . Since 24 and 54 are relatively
4 5
prime, by the Chinese Remainder Theorem there is a unique n, 0 ≤ n < 2 ⋅ 2 = 10000 that sat
isfies both n ≡ 36 ( mod 625 ) , and n ≡ 0 ( mod 16 ) . Note that n = 7536 satisfies both of these
24 24
2 2
congruences, and 2 ≡ n(mod 10000) . Therefore the last four digits of 2 + 1 are 7537.
32 2
2 = 536 ≡ 421 (
mod 625 )
64 2
2 = 421 ≡ 366 (
mod 625 )
128 2
2 = 366 ≡ 206 (
mod 625 ) .
216 128 + 64 + 16 + 8
So, 2 = 2 ≡ (206)(366)(536)(256) ≡ 36 ( mod 625 ) .
24 24 24
2 4 2 2
Thus 2 ≡ 36 ( mod 635 ) , and since 2 = 16 divides2 so 2 ≡ 0 ( mod 16 ) . We also have
that 625 ≡ 1 ( mod 16 ) and 36 ≡ 4 ( mod 16 ) , so 12 ( 625 ) + 36 ≡ 0 ( mod 16 ) . Now by the Chinese
24
2
Remainder Theorem 2 ≡ 12 ( 625 ) + 36 ≡ 7536 ( mod 10000 ) .
24
2
So the four rightmost digits of 2 + 1 are 7537.
Editor’s Comment: In what he described as “the deepest computation in history whose result
was a simple yes/no answer,” Richard Crandall of the Center for Advanced Computation at Reed
College, together with Ernest Myer, formerly of Case Western Reserve University, and Jason Pap
24
2
adopoulos of the University of Maryland, have verified that the 24th Fermat number, 2 + 1 , is
not a prime number. For more information about the 24th Fermat number, visit the web site
www.perfsci.com/. This problem was created by Gene Berg of NSA.
The solutions to these problems give us an opportunity to briefly introduce Euler’s function
φ ( m ) , Euler’s generalization of Fermat’s Theorem, and the Chinese Remainder Theroem. Our
goal is to introduce some of the notation and terminology of this subject to young mathematicians
seeing this for the first time, and possibly help them understand the proofs. For more details see
(a) An Introduction to the Theory of Numbers by G. H. Hardy and E. M. Wright, published by
Clarendon Press, or (b) The Art of Problem Solving, Volumes 1 and 2, by Richard Rusczyk and
Sandor Lehoczky, published by Greater Testing Concepts, P.O. Box 5014, New York, NY 10185
5014.
For a brief discussion of Congruences, Fermat’s Theorem, and the Extended Euclidean Algo
rithm (EEA) for finding Greatest Common Divisors see the Solutions to Problem 1/2/11 from Year
11 of the USAMTS.
Definition (Euler’s function φ ( m ) ): For an integer m, let φ ( m ) denote the number of positive
integers less than m and relatively prime to m. For example, consider m = 20: there are eight pos
itive integers less than 20 which are relatively prime to 20, namely 1, 3, 7, 9, 11, 13, 17, and 19, so
φ ( 20 ) = 8 . Since m = 17 is prime, all sixteen positive integers less than 17 are prime to 17,
φ ( 20 ) = φ(4 × 5) = φ ( 4 ) × φ ( 5 ) = 4 ⎛ 1 – ---⎞ × [ 4 ] = 8
1
⎝ 2⎠
Theorem (Euler’s generalization of Fermat’s Theorem): If a and m are integers with Greatest
Common Divisor GCD(a, m) = 1, then
φ(m)
a ≡ 1 ( mod m).
For example, if a is any integer relatively prime to 20 [i.e. a ∈ {1, 3, 7, 9, 11, 13, 17, 19} ], then
8
a ≡ 1 ( mod 20) .
Chinese Remainder Theroem: If m 1, m 2, …, m k are positive integers that are pairwise relatively
prime [ that is, GCD( mi, mj) = 1 for 1 ≤ i < j ≤ k ], then for any integers a 1, a 2, …, a k the system
of congruences y ≡ a i (mod m i ), i = 1, 2, …, k , has a simultaneous solution y that is uniquely
determined modulo m = m 1 m 2… m k . [A similar theorem applies to polynomials.]
Solution: We do this in three steps, solving for the first two equations, then for the first three equa
tions, and finally for all four equations. In each step we use the Extended Euclidean Algorithm
(EEA) (for examples of this algorithm in use, see the Solution to Problem 2/1/11 of Year 11).
x = a 1 + (a 2 – a 1 ) ⋅ f 1 ⋅ m 1 = 2 + (4 – 2 ) ⋅ 5 ⋅ 3 = 32 .
Observe x satisfies the requirements of step 1.
Solution 2 by Laura Pruitt (11/MA): Multiply out the left side of the equation to get
5 4 3 2 5
x + (a + c) x + (ac + b + d) x + (ad + bc + e) x + (ae + bd)x + be = x – 9 x – 27
Comparing coefficients in this new equation, it is easy to find equations relating the variables a, b,
c, d, and e:
1. a + c = 0
2. ac + b + d = 0
3. ad + bc + e = 0
4. ae + bd = – 9
5. be = – 27
(b,e) : (1,– 2 ), (– 1,27), (27,– 1), (–2 ,1), (3,– 9), (– 3,9), (9,– 3), (– 9,3) .
This leaves us with three equations (2, 3, and 4) and one variable (d) that we have not used yet.
Substitute –c for a and solve 2, 3, and 4 for d in terms of a, b, c, and e:
2 2
2. – c + b + d = 0 -> d = c – b
3. – cd + bc + e = 0 -> d = (bc + e) ⁄ c
4. – ce + bd = – 9 -> d = (ce – 9 ) ⁄ b
2
Therefore c – b = (bc + e) ⁄ c = (ce – 9 ) ⁄ b .
In pairs, solve for c in terms of b and e:
Comb. 1 (use 2 and 3) Comb. 2 (use 2 and 4) Comb. 3 (use 3 and 4)
2 2
c – b = ( bc + e ) ⁄ c c – b = ( ce – 9 ) ⁄ b ( bc + e ) ⁄ c = ( ce – 9 ) ⁄ b
3 2 2 2 2
c – 2bc – e = 0 bc – ec + ( 9 – b ) = 0 ec – ( b + 9 )c – be = 0
2 2 2 2
2
[ e ± e – 4b ( 9 – b ) ]
2 b + 9 ± ( b + 9 ) + 4be
discard: cubic c = ------------------------------------------------------- c = -----------------------------------------------------------------------
2b 2e
In order for c to be an integer, which it must be, the discriminant must be a perfect square. Test
the eight possible solutions for (b,e) :
For Comb. 2: (b,e) ∈ {(9,– 3), (3,– 9)}
Check (b,e) = (3,– 9) in the full quadratics from Comb. 2 and Comb. 3. It checks.
If (b,e) = (3,– 9) , then c ∈ {0, – 3} (the answers to the quadratics), but looking at equation 3
when solved for d (d = (bc + e) ⁄ c ), we see that c ≠ 0 since division by 0 is undefined. There
fore c = – 3 and a = –c = 3 .
It is now simple to solve for d; simply substitute the values of a, b, c, and e into any of the original
equations containing d to yield d = 6 .
(2a) d + ac + b = 0 2
⇒ d–a +b = 0
(3a) e + ad + bc = 0 ⇒ e + ad – ba = 0
(4) ae + bd = – 9
(5) be = – 27
To solve, try all possible values of b and e, plugging the values into the other equations to deter
mine if they work.
b = 1 (4) – 27a + d = – 9 d = – 9 – 27a a does not exist.
e = – 27 (3) – 27 + ad – a = 0 – 27 + a ( – 9 – 27a ) – a = 0
2
– 27 – 9a – 27a – a = 0
2
– 27a – 10a – 27 = 0
10 ± 100 – 4 ( –27 ) ( – 27 )
a = ---------------------------------------------------------------
2 ( – 27 )
b = 3 (4) – 9a + 3d = – 9 d = – 3 + 3a a = 3
e = –9 (3) – 9 + ad – 3a = 0 2 b = 3
– 9 – 3a + 3a – 3a = 0
2 c = –3
a – 2a – 3 = 0
d = 6
(a – 3)(a + 1) = 0
e = –9
a = 3 or a = – 1
it works!
Solution.
Editor’s Comment: We thank our Problem Editor, Dr. George Berzsenyi, for this problem. It
5 2
stems from a recent article, “The Factorization of x ± p x – k and Fibonacci Numbers,” pub
lished in the November 1999 issue of the Fibonacci Quarterly.
s 1 ⋅ s 1 = s 2 + s 0
2 2
s2 = s1 – s0 = s1 – 2
s2 ⋅ s1 = s3 + s1
2
[s 1 – 2 ] ⋅ s 1 = s 3 + s 1
s 3 = s 1 – 3s 1
s 3 ⋅ s 3 = s 6 + s 0
3 2
[s 1 – 3s 1 ] = s 6 +
2
6 4
2
s 1 – 6s 1 + 9s 1 = s 6 +
2
6 4 2
s 6 = s 1 – 6s 1 + 9s 1 – 2
s 6 ⋅ s 6 = s 12
+ s 0 = s 0 + s 0 = 4
6 4
2 2
[s 1 – 6s 1 + 9s 1 – 2 ] = 4
s 1 ∈ {– 3, 3, – 2, 2, – 1, 1, 0}
Since s1 must be strictly between 0 and 2, all but 1 and 3 are eliminated.
First, try s 1 = 1 . s 1 ⋅ s 1 = s 2 + s 0 yields s 2 = – 1 , a contradiction. So s1 ≠ 1 .
Second, try s 1 = 3. s 1 ⋅ s 1 = s 2 + s 0 yields 3 = s 2 + 2 or s 2 = 1 . It works!
So, s 0 = 2 , s 1 = 3 , and s 2 = 1 .
Editor’s Comment: Once again, we are most grateful to Dr. Erin Schram of NSA for this intrigu
ing problem. An indirect, but interesting solution begins with the observation that
1 1
cos α cos β = --- cos (α + β) + --- cos (α – β) and modeling the sequence as s i = 2 cos ( iθ ) for
2 2
some θ .
5/1/12. In the octahedron shown on the right, the base
and top faces are equilateral triangles with sides
measuring 9 and 5 units, and the lateral edges are all 5
of length 6 units. Determine the height of the octa 5 5
hedron; i.e., the distance between the base and the
6 6
top face.
6 6
Solution 1 by Anna Maltseva (12/MI): 6 6
By symmetry, the top face is parallel to the base, and the
line connecting the centers of the triangles of the top
face and the base is perpendicular to both the top face
9 9
and the base. 9
The top view of the octahedron looks like the figure at left. Let
O1 denote the center of the top face, O2 denote the center of the
base, A denote a vertex of the top face, and B denote the mid
point of the corresponding side of the base. Imagine dropping a
A line from A perpendicular to the base and let K denote the point
B where it intersects the plane of the base. Then triangle ABK will
O1 be a right triangle and AK will be the height of the octahedron.
2 2 2 2 2
So AB = AK + BK = AK + (O 2 B – O 1 A)
2 2 2 2
6 = AB + (4.5) so AB = 15.75 .
A
A 5
-------
4.5 3
-------
3 2.5
O2
4.5 B
30°
Therefore,
15.75 = AK + ⎛ ------- – -------⎞ .
2 4.5 5 2
⎝ 3 3
⎠
63 1 2
------ – ------ = AK
4 12
188 47 141
0 1 1 1 1
2 2 2
1 0 AB AC AD
2 2 2
1 AB 0 BC BD
2 2
2
1 AC BC 0 CD
2 2 2
1 AD BD CD 0
Plugging in values of the two tetrahedra, we get
0 1 1 1 1
1 0 25 25 36
4 2
1 25 25 0 x
2
1 36 36 x 0
and
0 1 1 1 1
1 0 81 81 36
4 2
1 81 81 0 x
2
1 36 36 x 0
as the determinants of the two tetrahedra, with T1 as the determinant of tetrahedron ABCD and T2
the determinant of CDEF. Since the tetrahedra have the same height, their volumes are propor
tional to the areas of their bases (by Cavalieri’s Principle). The areas of their bases are propor
T1 T2
81 --------
- = 25 --------
-.
288 288
25
2
This means that T 2 ⎛ ------⎞ = T 1 . Thus
⎝ 81⎠
⎝ 81
⎠
or
– 2800 4 22400 2
--------------- x + --------------- x + 25200 = 0
81 9
and x2 is 81 or -9, but -9 is extraneous. This means that CD = 9 . Thus, T2 is
0 1 1 1 1
1 0 81 81 36
T 2 = 1 81 0 81 36 = 616734
1 81 81 0 81
1 36 36 81 0
27 81 3
and the volume of tetrahedron CDEF is ------ 47 . Since the base has area ------------- , the height is
4 4
47
------ ∼ 3.958 .
3
Editor’s Comment: Dr. Berzsenyi based this problem on a recent article in Mathematics Maga
zine (vol. 72, no. 4, pp.277-286).