All About The Digits 2

Algebra Level 3

Let a a and b b be single-digit numbers and that a < b a<b .

  • a b ab is a two-digit number.
  • a b 2 ab^{2} is a three-digit number.
  • a 2 b 2 a^{2}b^{2} is a four-digit number.

Find the product of the integer solutions. How many digits does the product have?


Try Part 1


The answer is 19.

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

Kaizen Cyrus
May 29, 2019

The integer solutions are:

  • a = 4 , b = 8 a=4, \ b=8
  • a = 4 , b = 9 a=4, \ b=9
  • a = 5 , b = 7 a=5, \ b=7
  • a = 5 , b = 8 a=5, \ b=8
  • a = 5 , b = 9 a=5, \ b=9
  • a = 6 , b = 7 a=6, \ b=7
  • a = 6 , b = 8 a=6, \ b=8
  • a = 6 , b = 9 a=6, \ b=9
  • a = 7 , b = 8 a=7, \ b=8
  • a = 7 , b = 9 a=7, \ b=9
  • a = 8 , b = 9 a=8, \ b=9

Getting all the integer solutions, we get 4 2 × 5 3 × 6 3 × 7 4 × 8 5 × 9 5 \small 4^{2}×5^{3}×6^{3}×7^{4}×8^{5}×9^{5} to find the product. The product is 2006958485274624000 2006958485274624000 which has 19 \boxed{19} digits.

Just an observation: if a 2 b 2 a^2 b^2 has four digits then a 2 b 2 1000 a^2 b^2\ge1000 so a b > 31 ab>31 . If a b > 31 ab>31 then each of a a and b b is at least 4 4 , so a b 2 > 100 ab^2>100 . Also a b < 100 ab<100 , a b 2 < 1000 ab^2<1000 and a 2 b 2 < 10000 a^2 b^2<10000 so we never have too many digits.

This means that all we have to solve is a b > 31 ab>31 and a < b a<b , leading straight to the list you've given.

Rather than work out the full product, it's also a bit easier to get the number of digits taking logarithms base 10 10 ; these just need to be added to get the answer.

Chris Lewis - 2 years ago

Brute force and direct:

Length [ IntegerDigits [ Times@@ Flatten [ Table [ If [ 10 a b 99 100 a b 2 999 1000 a 2 b 2 9999 , a b , Nothing ] , { b , 9 } , { a , 0 , b 1 } ] ] ] ] 19 \text{Length}\left[\text{IntegerDigits}\left[\text{Times}\text{@@} \\ \text{Flatten}\left[\text{Table}\left[\text{If}\left[10\leq a b\leq 99\land 100\leq a b^2\leq 999\land 1000\leq a^2 b^2\leq 9999,a b,\text{Nothing}\right],\{b,9\},\{a,0,b-1\}\right]\right]\right]\right] \\ \Rightarrow 19

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...