A majority of the 30 students in Ms. Deameanor's class bought pencils at the school bookstore. Each of these students bought the same number of pencils, and this number was greater than 1. The cost of a pencil in cents was greater than the number of pencils each student bought, and the total cost of all the pencils was . What was the cost of a pencil in cents?
- A)
- B)
- C)
- D)
- E)
Answer
B
Key insight
Factor 1771 cents as 7 × 11 × 23. A majority of 30 is 16 to 30 students, so 23 bought; each bought 7 pencils at 11 cents.
Solution
Work in cents, so the total is cents. The total cost is
(number of students who bought) (pencils each) (cents per pencil) .
So each of those three numbers is a factor of . First find the factors, then use the conditions to decide which is which.
1. Factor 1771. Try small primes. It is odd, so not divisible by . Its digits add to , so not by . It doesn't end in or . Try : . Then . So
2. Find the number of students. A majority of means more than half, so between and students. List all the factors of : . The only one between and is . So students bought pencils.
3. Split what is left. Then (pencils each) (cents per pencil) .
4. Each student bought more than pencil, and the price is more than the number of pencils. The only way to write as a product of two numbers both bigger than is . The bigger one is the price, so each student bought pencils at cents.
Check: . ✓
The answer is .
Why this works
When a total is a product of whole numbers you don't know, break the total into primes. Then turn each word condition into a range or an ordering ("majority" means to , "greater than" sets which factor is bigger). Those conditions decide which prime goes where.
The trap
Not trying to factor 1771 (it is not prime), or ignoring the word majority, which is exactly what forces the number of buyers to be 23.
Concise solution
Let be the number of students who bought pencils, the number of pencils each bought, and the cost of a pencil in cents. Then , with (a majority of ), , and .
Factor : it is divisible by , giving , and . So
The only divisor of between and is (the others are ). Hence and . With , we need and .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
- Introduction to Number Theory, Chapter 4: Prime Factorization (§4.2, §4.4)
Techniques
Bound the quantity above/below or estimate to pin it down · Set up the equation/formula and compute; no special trick needed