Question
Question: Let X be a two digit number such that both X and X2 end with the same digit and none of the digits i...
Let X be a two digit number such that both X and X2 end with the same digit and none of the digits in X equals zero. When the digits of X are written in the reverse order, the square of the new number so obtained has last digit as 6 and is less than 3000. Then the number of distinct possibilities for X is given by
1
2
3
4
3
Solution
Let X be a two-digit number represented as 10a+b, where a is the tens digit and b is the units digit. The problem states that a,b∈{1,2,…,9}.
Condition 1: X and X2 end with the same digit. The last digit of X is b. The last digit of X2 is the last digit of b2. This implies b≡b2(mod10). Checking values for b∈{1,2,…,9}:
- 12=1⟹1≡1(mod10) (Valid)
- 52=25⟹5≡5(mod10) (Valid)
- 62=36⟹6≡6(mod10) (Valid) Thus, possible values for b are {1,5,6}.
Condition 2: Let Y be the number obtained by reversing the digits of X, so Y=10b+a. Y2 ends with 6 and Y2<3000. The last digit of Y is a. The last digit of Y2 is the last digit of a2. This implies a2≡6(mod10). Checking values for a∈{1,2,…,9}:
- 42=16⟹4≡6(mod10) (Valid)
- 62=36⟹6≡6(mod10) (Valid) Thus, possible values for a are {4,6}.
Now we combine the possible values for a and b and check the condition Y2<3000.
Case 1: a=4
- If b=1: X=41. Y=14. Y2=142=196. Since 196<3000, X=41 is a valid possibility.
- If b=5: X=45. Y=54. Y2=542=2916. Since 2916<3000, X=45 is a valid possibility.
- If b=6: X=46. Y=64. Y2=642=4096. Since 4096<3000, X=46 is not valid.
Case 2: a=6
- If b=1: X=61. Y=16. Y2=162=256. Since 256<3000, X=61 is a valid possibility.
- If b=5: X=65. Y=56. Y2=562=3136. Since 3136<3000, X=65 is not valid.
- If b=6: X=66. Y=66. Y2=662=4356. Since 4356<3000, X=66 is not valid.
The distinct valid possibilities for X are 41, 45, and 61. Therefore, the number of distinct possibilities for X is 3.