Goes back to the same digit

Let a a and b b be distinct single-digit positive integers such that

  • the last digit of a b a^b is b ; b;
  • the last digit of b a b^a is a . a.

What is a × b ? a\times b?


The answer is 21.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Leonel Castillo
Feb 10, 2018

We have that a b b m o d 10 a^b \equiv b \mod 10 and b a a m o d 10 b^a \equiv a \mod 10 . First, notice that if a = 1 a = 1 then 1 b m o d 10 b = 1 1 \equiv b \mod 10 \implies b = 1 which contradicts the fact that they must be distinct. So a , b 1 a,b \neq 1 .

Because 10 = 2 × 5 10 = 2 \times 5 this means a b b m o d 2 a^b \equiv b \mod 2 but all the elements in Z / 2 Z \mathbb{Z} / 2 \mathbb{Z} (0 and 1) have the property that x y = x x^y = x so what this implies is a b m o d 2 a \equiv b \mod 2 . (They must have the same parity).

Then notice that in Z / 10 Z \mathbb{Z} / 10 \mathbb{Z} , x 5 x m o d 10 x^5 \equiv x \mod 10 so if a , b = 5 a,b = 5 that would imply a = b a = b which contradicts the fact that they must be distinct.

Now suppose that b = 4 b = 4 . Then a 4 4 m o d 5 1 4 m o d 5 a^4 \equiv 4 \mod 5 \implies 1 \equiv 4 \mod 5 which is a contradiction. The same happens for b = 8 b=8 so we can say a , b 4 , 8 a,b \neq 4,8 . Similarly, if b = 9 b = 9 we would have a 9 9 m o d 5 a 9 m o d 5 a^9 \equiv 9 \mod 5 \implies a \equiv 9 \mod 5 . This means a a would have to be 4 4 or 9 9 but we proved they must have the same parity so a = 9 a = 9 which contradicts the fact that they must be distinct.

So we have proven a , b 1 , 4 , 5 , 8 , 9 a,b \neq 1,4,5,8,9 . Let's suppose that a , b a,b were even. Then necessarily one would have to be 2 2 and the other 6 6 . We can check my computation that this is not the case. Now let's suppose that a , b a,b are odd. Then necessarily one would have to be 3 3 and the other 7 7 and this pair works. So the solution is 3 × 7 = 21 3 \times 7 = 21 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...