Number TheoryhardFree

How Many Squares 1² to 1999² Have an Odd Tens Digit | IOQM

JEE Maths question with a full step-by-step solution.

Question
How many of the numbers 12,22,32,,199921^2, 2^2, 3^2, \ldots, 1999^2 have an odd digit in the tens place?
Solution
Answer: 400
Step 1: Write n=10a+bn = 10a + b with a0a \ge 0 and b{0,1,2,,9}b \in \{0, 1, 2, \ldots, 9\}. Then
n2=100a2+20ab+b2.n^2 = 100a^2 + 20ab + b^2.
Step 2: The last two digits of n2n^2 come from 20ab+b220ab + b^2. Writing b2=10tb+ubb^2 = 10\,t_b + u_b (tens digit tbt_b, units digit ubu_b), the tens digit of n2n^2 is the units digit of 2ab+tb2ab + t_b. Since 2ab2ab is even, the tens digit of n2n^2 has the same parity as tbt_b, the tens digit of b2b^2. Step 3: Examine b2b^2 for b=0,1,,9b = 0, 1, \ldots, 9:
0, 1, 4, 9, 16, 25, 36, 49, 64, 81,0,\ 1,\ 4,\ 9,\ 16,\ 25,\ 36,\ 49,\ 64,\ 81,
with tens digits 0,0,0,0,1,2,3,4,6,80, 0, 0, 0, 1, 2, 3, 4, 6, 8. The tens digit is odd only for b=4b = 4 (from 1616) and b=6b = 6 (from 3636). Step 4: Hence n2n^2 has an odd tens digit precisely when n4n \equiv 4 or n6(mod10)n \equiv 6 \pmod{10}. In 1n19991 \le n \le 1999 there are 200200 values with n4n \equiv 4 (namely 4,14,,19944, 14, \ldots, 1994) and 200200 values with n6n \equiv 6 (namely 6,16,,19966, 16, \ldots, 1996)$ Step 5: Total =200+200=400= 200 + 200 = 400.
Still stuck on this question?Ask your doubt on WhatsApp
Similar questions

Solve more, learn faster

Sign up free to solve more JEE Maths questions and explore doMath — timed drills, mastery sprints, bookmarks, and chapter-wise progress tracking.