2024 PiMC Fermat Division Solutions
2024 PiMC Fermat Division Solutions
Edwin Peng, Emre Gul, Hanna Chen, Isaac Li, Justin Sun, Kelly Cui, Michael
Zhang, Preston Fu, Richard Spence, and Stanley Wang.
Solutions
1. Allie purchases three t-shirts, priced at $13.50 each. Dana purchases two
jackets, priced at $27.75 each. How many more dollars does Dana spend
than Allie?
3
Answer (27): 36% of 75 is equal to 75% of 36, which is 4 × 36 = 27.
2
3. A recipe for 18 chocolate chip cookies calls for 1 cups of flour. If Abby
3
has 5 cups of flour and an ample supply of every other ingredient, what is
the greatest number of chocolate chip cookies Abby can make?
1
Pi Math Contest Fermat Division 2024 Solutions
4. Hector is six years older than Marisol, Marisol is 4 years older than Cielo,
and Hector is twice as old as Cielo. What is the sum of their ages?
Answer (44): Let h, m, and c be the ages of Hector, Marisol, and Cielo,
respectively. We know h = m + 6 and m = c + 4, so h = c + 10, and
Hector is 10 years older than Cielo. Since Hector is twice as old as Cielo,
h = 2c, so 2c = c + 10 =⇒ c = 10. Then Cielo is 10, Marisol is 14, and
Hector is 20, and the sum of their ages is 20 + 14 + 10 = 44.
Answer (16): Regardless of which chair Robert sits in, there are 9 seats
left, of which 2 of them are next to Robert. The probability that Saul does
7
not sit next to Robert is , so m + n = 7 + 9 = 16.
9
Answer (28): After adding 1 to both sides, we can factor the left-hand
side:
xy + x + y + 1 = ( x + 1)(y + 1) = 221.
The prime factorization of 221 is 13 × 17; this can also be seen using the
difference of squares method, as 221 = 152 − 22 = (15 − 2)(15 + 2). Since
2
Pi Math Contest Fermat Division 2024 Solutions
8. Parallelogram ABCD has vertices A (1, 1), B (2, 5), C ( a, b) and D (7, 3) in
the xy-plane. What is a + b?
9. Eric and Joshua are sitting near a farm containing 2-legged chickens and
4-legged cows, and no other animals. Eric counts 102 legs, and Joshua
counts 39 animals. How many chickens are on the farm?
Answer (27): Let x denote the number of cows on the farm and y denote
the number of chickens. Because Eric counts 102 legs, we have the equa-
tion 4x + 2y = 102. Since Joshua counts 39 animals, we have x + y = 39.
To find y, we can multiply the second equation by −4, then add the first
equation, obtaining (4x + 2y) + (−4x − 4y) = 102 − 4(39) = −54, so
−2y = −54 and y = 27.
10. Consider the statement “If a positive 2-digit integer is not divisible by 2,
3, or 5, then it is prime.” How many positive 2-digit integers make this
statement false?
3
Pi Math Contest Fermat Division 2024 Solutions
D
36
B C
30
12. The positive integer a has exactly 5 positive factors, and the positive inte-
ger b has exactly 7 positive factors. The integer a × b must either have m
positive factors or n positive factors, where m 6= n. What is m + n?
Answer (46): The only possibility is that a = p4 for some prime num-
ber p, and b = q6 for some prime number q. If p = q, then a × b = p10 ,
and a × b has 11 factors. Otherwise, if p 6= q, then a × b = p4 × q6 , which
has (4 + 1) × (6 + 1) = 5 × 7 = 35 factors. Therefore {m, n} = {11, 35},
and m + n = 11 + 35 = 46.
4
Pi Math Contest Fermat Division 2024 Solutions
13. An equilateral triangle with side length 4 cm is drawn on the plane. Let
S be the set of points in the plane that are outside the triangle, but within
2 cm of some point on or inside the triangle. The area of S equals aπ + b
cm2 for some positive integers a and b. What is a + b?
Answer (64): The area of the larger rectangle is the combined area of the
rectangles, which is 16 + 9 + 18 + 24 + 36 + 56 + 30 + 66 = 255. The
prime factorization of 255 is 3 × 5 × 17, so one of the side lengths must
be a prime. Since the 6 × 11 is contained inside the rectangle, both dimen-
sions must be greater than or equal to 6, and the only possibility is that
the larger rectangle is a 15 × 17 rectangle. The perimeter of this rectangle
is 2(15 + 17) = 64. While not necessary to solve the problem, the figure
below shows one way the rectangles can be arranged to form a 15 × 17
rectangle.
5
Pi Math Contest Fermat Division 2024 Solutions
11 4
6 6
6 5
14
3
17
6
3
5
8 2 3 2
3 12
15
15. David cuts a 4-inch cube into 64 unit cubes, each with side length 1 inch.
Half of these cubes are painted red on all faces, and the rest are painted
blue on all faces. When David reassembles the unit cubes to form a 4-
inch cube, what is the greatest possible surface area of this cube, in square
inches, which is painted red?
16. For how many integers n between 1 and 100, inclusive, is the product
n(n + 1)(n + 2) divisible by 15?
6
Pi Math Contest Fermat Division 2024 Solutions
17. Trapezoid ABCD has AB k CD, and m∠CDA = m∠ DAB = 90◦ . Point E
is on segment BC so that AE ⊥ BC, and point F is on AB so that DF k BC.
Segments AE and DF intersect at G. Given that AB = 21 and CD = AD =
12, what integer is closest to the area of trapezoid CDGE?
D 12 C
12
F
A 21 B
D 12 C
P
E
12
F
A 9 12 B
7
Pi Math Contest Fermat Division 2024 Solutions
By a quick angle chase and AAA argument, we have that 4 GPD ∼ 4 ADF ∼
4 DPA, and all are similar to 3-4-5 triangles. Since AD = 12, it follows that
DP = 43 × 12 = 16, and CP = 16 − 12 = 4.
The area of trapezoid CDGE equals the area of 4 GPD, minus the area of
right 4 EPC. The base and height of 4 GPD are DG = 16 × 35 = 48 5 , and
×48
GP = 16 × 5 = 5 , respectively. The area of 4 GPD is 2 × 5 × 5 = 3225
4 64 1 48 64
.
Since 4 EPC is similar to 4 GPD with a scale factor of 1:4, the area of
1
4 EPC is 16 the area of 4 GPD, and therefore the area of CDGE is
32 × 48 32 × 48 15
1 288
[CDGE] = 1− = × = .
25 16 25 16 5
As a decimal, the area of CDGE is 57.6, or 58 when rounded to the nearest
integer.
18. Alice and Brenda each arrive at a diner at a randomly chosen time be-
tween 2:00 pm and 3:00 pm, independently of each other. While Alice is
patient and willing to wait until Brenda arrives, Brenda will only wait for
up to 15 minutes for Alice to arrive, before leaving. The probability that
m
Alice and Brenda meet each other at the diner equals , where m and n
n
are relatively prime positive integers. What is m + n?
Brenda
3 pm
2 pm 3 pm Alice
The desired probability equals the ratio of the shaded area to the area of
the square. Considering the region to be a square with side length 1, the
8
Pi Math Contest Fermat Division 2024 Solutions
1 3 3 9
area of the unshaded isosceles triangle is × × = . The area of
2 4 4 32
9 23 23
the shaded region is 1 − = . The probability is therefore , and
32 32 32
m + n = 23 + 32 = 55.
19. There are four positive integers less than 100 whose squares end in the
digits “16.” One such integer is 4, as 42 = 16. What are the last two digits
of the sum of the other three integers?
20. Ann, Beth, and Cia split a large basket containing 100 apples, 100 bananas,
and 100 oranges so that each person received 100 pieces of fruit. Ann re-
ceived one more apple than Beth, and Beth received two more bananas
than Cia. Given that Cia received 7 apples, what is the greatest whole
number of oranges Cia could have received?
Suppose Beth received b bananas. From the problem statement, Cia re-
ceived b − 2 bananas. Since there are 100 bananas altogether, Ann received
100 − b − (b − 2) = 102 − 2b bananas. Our table is as follows:
9
Pi Math Contest Fermat Division 2024 Solutions
a + b + c = 1,
4a + 2b + c = 8, and
9a + 3b + c = 27.
10
Pi Math Contest Fermat Division 2024 Solutions
22. Hannah rolled six standard 12-sided dice (with faces numbered 1 through
12). The product of her dice rolls is 178,200, and no two of Hannah’s rolls
showed the same number. What is the sum of Hannah’s dice rolls?
Answer (50): First, we will find the prime factorization of 178,200, which
is 23 × 34 × 52 × 111 . Since no two of Hannah’s rolls showed the same
number, we will find a way to express 178,200 as the product of six differ-
ent integers between 1 and 12, inclusive.
Since the dice rolls are between 1 and 12, and 11 is the only number divis-
ible by the prime number 11, it follows that one of the dice rolls must be
11. Next, observe that the product is divisible by 52 . Since 5 and 10 are
the only two multiples of 5, two of the dice rolls must have been 5 and 10.
Therefore, three of the dice rolls are 5, 10, and 11, and the product of the
remaining three dice rolls is 22 × 34 .
There are four possible dice rolls which are multiples of 3 (3, 6, 9, and
12); we claim that the remaining three dice rolls must all be multiples of
3. Suppose otherwise at least one die roll is not divisible by 3; in this
case, there is no way for the product of the remaining three dice rolls to
be divisible by 34 (as 9 is the only multiple of 9 between 1 and 12). The
product of the numbers 3, 6, 9, and 12 is 23 × 35 ; it follows that 6 is the
multiple of 3 which is not rolled, and that the remaining three dice rolls
are 3, 9, and 12.
The sum of all of Hannah’s dice rolls is 5 + 10 + 11 + 3 + 9 + 12 = 50.
23. 100 people sit at a round table, and every person is either a knight (who
always tells the truth), or a knave (who always lies). When every person at
the table was asked, “Of the two people sitting next to you, how many of
them are knights?”, fifty people answered “0,” and fifty people answered
“2.” What is the greatest possible number of knaves who are sitting at the
round table?
Answer (83): Note that if two knights sit next to each other, then every
person must be a knight (since no knight can sit next to both a knight and
a knave, as this knight would have answered “1”). For this case, every
person truthfully answers “2,” which contradicts the statement that fifty
people answered “0” and fifty answered “2.” Thus, we will consider the
case when no two knights sit next to each other. Let k be the number of
knights. Since we are considering the case where no two knights are adja-
cent, we have k ≤ 50.
11
Pi Math Contest Fermat Division 2024 Solutions
24. How many non-empty subsets S of the set {2, 3, 5, 7, 11, 13, 17, 19} are there
such that the sum of the elements of S is divisible by 4? One example is
S = {2, 7, 11}.
Answer (63): Consider choosing a subset T of {5, 7, 11, 13, 17, 19}. No
matter what subset is chosen, we can uniquely determine a subset S such
that S ⊆ T ∪ {2, 3}, T ⊆ S, and the sum of the elements of S is divisi-
ble by 4. To show this, let s( T ) denote the sum of the elements of T. If
s( T ) ≡ 0 (mod 4), then S = T. If s( T ) ≡ 1 (mod 4), then S = T ∪ {3}. If
s( T ) ≡ 2 (mod 4), then S = T ∪ {2}. Finally, if s( T ) ≡ 3 (mod 4), then
S = T ∪ {2, 3}. Therefore, by choosing a subset of {5, 7, 11, 13, 17, 19}, we
can uniquely determine a subset S whose sum is divisible by 4.
Since | T | = 6, there are 26 = 64 subsets T, and therefore, 26 = 64 sub-
sets S whose sum is divisible by 4. However, this counts the empty set
S = ∅, which is selected when T = ∅. We subtract 1 from our count,
giving 64 − 1 = 63 non-empty subsets.
25. A function f ( x ) satisfies the following properties for all positive integers
x:
f ( x )2 = f ( x2 ) + 2, and
f ( x ) = 2 f (2x ) − 3x.
12
Pi Math Contest Fermat Division 2024 Solutions
m
The sum of all possible values of f (8) equals , where m and n are rela-
n
tively prime positive integers. What are the last two digits of m + n?
13