I saw this question on a forum for the IIM CAT prep and seemed interesting.
Q: If a is an integer, and the tens digit of a^2 is 7, what is the units digit?
Ans: 6
So the way I solved this was brute force by squaring numbers till I got 24-square = 576, hence assumed the rule applied to all subsequent squares that would have a 7 in the tens digit (didn't really bother computing further, just assumed there is no exception and moved on).
Is there an easy way to do this using algebra? What am I missing?
Also, just for kicks I looked at the the squares from 1 - 100 to see if there are any such other patterns. I notice that for all squares which have an "odd number" in the tens digit, the units digit is 6!
So if a DS question were posed (and I'm making it up) that:
If a is a positive integer, is the tens digit of a^2 odd?
I. the units digit of a is equal to 4 or 6
II. the units digit of a is equal to 3 or 5
What would be the best way to approach this and solve quickly, assuming not having knowledge of the fact beforehand? Would you approach it using algebra or number plugging? (with number plugging I would have a little less confidence since I wouldn't be completely sure there isn't an exception somewhere)
--------------------
For reference,
Numbers with tens digit of the square as 1 are: 4, 46, 54, 96
Numbers with tens digit of the square as 3 are: 6, 44, 56, 94
Numbers with tens digit of the square as 5 are: 16, 34, 66, 84
Numbers with tens digit of the square as 7 are: 24, 26, 74, 76
Numbers with tens digit of the square as 9 are: 14, 36, 64, 86