NumberthonNumberthon

SolveFire POTD

Bronze
number_theory
5/14/2026
Problems sourced from solvefire.net
Problem
The integers 1,2,3,…,20261,2,3,\ldots,2026 are written on cards. A card labeled nn is kept if (n−1)(n+1)(n-1)(n+1) is divisible by 24. How many cards are kept?
Solution ApproachShow

Step-by-step approach

(n−1)(n+1)=n2−1(n-1)(n+1)=n^2-1. Need 24∣n2−124\mid n^2-1, i.e., 8∣n2−18\mid n^2-1 and 3∣n2−13\mid n^2-1. Check: 8∣n2−18\mid n^2-1 iff nn is odd; 3∣n2−13\mid n^2-1 iff n≢0(mod3)n\not\equiv 0\pmod 3. Count n∈{1,…,2026}n\in\{1,\ldots,2026\} that are odd and not divisible by 3.

Ready for more competition problems?

Practice the full SolveFire course and compete in ranked math battles — free to play.