Skip to main content

2024 AMC 10B Problem 24

Problem 24 of 25HarderNumber Theory

Let P(m)=m2+m24+m48+m88. \begin{aligned} P(m) &= \frac{m}{2} + \frac{m^2}{4} \\ &\quad {}+ \frac{m^4}{8} + \frac{m^8}{8}. \end{aligned} How many of the values of P(2022),P(2022), P(2023),P(2023), P(2024),P(2024), and P(2025)P(2025) are integers?

Answer choices

Show solution

Solution

Put everything over 8:8: P(m)=m8+m4+2m2+4m8.P(m) = \dfrac{m^8 + m^4 + 2m^2 + 4m}{8}. If mm is even, every term up top is divisible by 8.8. If mm is odd, then m2m4m81m^2 \equiv m^4 \equiv m^8 \equiv 1 and 4m4(mod8),4m \equiv 4 \pmod 8, so the numerator is 1+1+2+4=80(mod8).1 + 1 + 2 + 4 = 8 \equiv 0 \pmod 8. Either way P(m)P(m) is an integer, so all 44 values are integers. Therefore, the answer is E.

More practice

Concepts: modular arithmetic · parity · casework

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.