But Which Two Digits?

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

  • the last digit of a × a × a a\times a \times a is b b , and
  • the last digit of b × b × b b\times b \times b is a a .

What is a + b a+b ?


The answer is 10.

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.

2 solutions

Hung Woei Neoh
Jul 23, 2016

Since a a and b b are both single digit positive integers, let us list all 9 possibilities:

1 3 = 1 2 3 = 8 3 3 = 27 4 3 = 64 5 3 = 125 6 3 = 216 7 3 = 343 8 3 = 512 9 3 = 729 1^3=1\\ 2^3=8\\ 3^3=27\\ 4^3=64\\ 5^3=125\\ 6^3=216\\ 7^3=343\\ 8^3=512\\ 9^3=729

Notice that for a = 1 , 4 , 5 , 6 , 9 a=1,4,5,6,9 , the last digit of a 3 a^3 is a a . We don't want this.

From the list above, we can see two possible pairs:

  • 2 3 2^3 ends with 8 8 , and 8 3 8^3 ends with 2 2
  • 3 3 3^3 ends with 7 7 , and 7 3 7^3 ends with 3 3

Therefore, a = 2 , b = 8 ; a = 3 , b = 7 a=2,b=8;\;a=3,b=7

Our answer is 2 + 8 = 3 + 7 = 10 2+8=3+7=\boxed{10}

Jesse Nieminen
Jul 23, 2016

The conditions for a a and b b can be expressed as:
a 3 b ( m o d 10 ) b 3 a ( m o d 10 ) \begin{aligned} a^3 &\equiv b \pmod{10} \\ b^3 &\equiv a \pmod{10} \end{aligned}

After substituting every possible digit in place of a a in the first one, finding b b , checking it works for the second one, and eliminating the solution pairs in which a = b a = b , we notice that in every possible pair of solutions, a + b = 10 a + b = \boxed{10} which is the answer.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...