The integers 1,2,3,…,2026 are written on cards. A card labeled n is kept if (n−1)(n+1) is divisible by 24. How many cards are kept?
Solution ApproachShowHide
Step-by-step approach
(n−1)(n+1)=n2−1. Need 24∣n2−1, i.e., 8∣n2−1 and 3∣n2−1. Check: 8∣n2−1 iff n is odd; 3∣n2−1 iff n≡0(mod3). Count n∈{1,…,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.