DR.WANG Mathematics中文

2024 AMC 10B · Question 24

Number theory · modular arithmetic · parity · casework · problem-solving

Problem outline

For P(m)=m/2+m2/4+m4/8+m8/8P(m)=m/2+m^2/4+m^4/8+m^8/8, how many of the four inputs 2022,2023,2024,20252022,2023,2024,2025 give an integer output?

(A) 00 (B) 11 (C) 22 (D) 33 (E) 44

Show answer and methods 2 methods

Answer

E. 44.

Method 1 Reduce the numerator modulo eight

Multiply by eight to obtain 8P(m)=4m+2m2+m4+m88P(m)=4m+2m^2+m^4+m^8. For even mm all four terms are multiples of eight.

For odd mm, m2≡1(mod8)m^2\equiv1\pmod8 since (m−1)(m+1)(m-1)(m+1) is divisible by eight. Therefore 8P(m)≡4+2+1+1≡0(mod8)8P(m)\equiv4+2+1+1\equiv0\pmod8. All four inputs work.

Method 2 Count rotating colorings of an eight-bead necklace

Place mm available colors on eight labeled positions around a circle. A rotation by kk positions fixes mgcd⁡(k,8)m^{\gcd(k,8)} colorings, since each cycle must be monochromatic.

The sum of the fixed-coloring counts for the eight rotations is m8+m4+2m2+4mm^8+m^4+2m^2+4m. By Burnside’s lemma its average P(m)P(m) counts the rotation classes, hence it is an integer for every positive integer mm. All four given inputs qualify.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)