Re: Which of the following could be the units digit in A + B, if m and n
[#permalink]
20 Sep 2024, 00:28
Not sure why the answers are only A (0) and E (4). Here's how I approach this problem, would appreciate if there are any errors in the logic below
m and n are non-negative integers, so there are 3 base cases:
1. m = 0, n = 0 => A + B = 2
2. m = 0, n = 1 => A + B = 10, units digit is 0
3. m = 1, n = 0 => A + B = 5
Since 4^1 = 4, 4^2 = 16, 4^3 = 64, 4^4 = 256, cycle of unit digits of 4 is 4 and 6
Since 9^1 = 9, 9^2 = 81, 9^3 = 729, 9^4 = 6561, cycle of unit digits of 9 is 9 and 1
Then we have the following unit digits combination:
4 + 9 = 13, units digit is 3
4 + 1 = 5
6 + 9 = 15, units digit is 5
6 + 1 = 7
Possible unit digits: 2,0,5,3,7