Why three-digit integers only? (Part-2)

If A A and B B are three-digit positive integers, let A # B A \text{ \# } B denote the six-digit integer formed by placing A A and B B side by side. Find the SUM of all the possible values of A A and B B such that:

A , B , B A , A # B , A # B B A, \quad B, \quad B-A, \quad A \text{ \# } B, \quad \dfrac{A\text{ \# }B}{B}

are all integer squares.

Note that A , B 100 A, B \geq 100 .


If you want to solve it's sister problem, an easy version, try this: Why three-digit integers only? .


The answer is 2618.

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

Satyajit Mohanty
Jul 26, 2015

Since A , B A A, B-A and B B are all integer squares, their square roots form a Pythagorean triple. Thus, the easiest place to look for numbers meeting the stated conditions is in the multiples of the ( 3 ; 4 ; 5 ) (3; 4; 5) triple. So, letting A = 9 t 2 A = 9t^2 and B = 25 t 2 B = 25t^2 for an integer t t , we see that B A = 16 t 2 B-A = 16t^2 ,

A # B = 1000 A + B = 9000 t 2 + 25 t 2 = 9025 t 2 = ( 95 t ) 2 A \text{ \# } B = 1000A + B = 9000t^2 + 25t^2 = 9025t^2 = (95t)^2 , and

A # B B = ( 95 t ) 2 ( 5 t ) 2 = 1 9 2 \dfrac{A \text{ \# } B}{B} = \dfrac{(95t)^2}{(5t)^2} = 19^2 .

Any choice of t t would yield A A and B B satisfying all the other conditions, but in order to make A A and B B three-digit numbers, t t would have to be 4 , 5 4, 5 or 6 6 , yielding values of ( for ( A , B ) (A,B) ):

( 144 , 400 ) ; ( 225 , 625 ) , ( 324 , 900 ) (144, 400); \quad (225,625), \quad (324,900)

These are in fact the only possibilities. Suppose A = x 2 , B A = y 2 and B = z 2 A = x^2, B-A = y^2 \text{ and } B = z^2 satisfy the given conditions. Let q = g c d ( x ; y ; z ) , x = x q , y = y q and z = z q q = gcd(x; y; z), x' = \frac{x}{q}, y' = \frac{y}{q} \text { and } z' = \frac{z}{q} .

Then x 2 + y 2 = z 2 x'^2+ y'^2 = z'^2 and z 2 z'^2 divides (A \text{ \# } B - B)/q^2 = 1000x'^2 . Since x x' and z z' are relatively prime, this means that z 2 z'^2 must divide 1000 1000 , so z z' must be 1 , 2 , 5 1, 2, 5 or 10 10 . By inspection, none of the others are possible values, so z z' must be 5 5 . We can also rule out the remaining case of x = 4 , y = 3 x' = 4, y' = 3 and z = 5 z' = 5 [that is, A = 16 t 2 A = 16t^2 and B = 25 t 2 B = 25t^2 ] since ( A # B ) / t 2 = 16025 (A \text{ \# }B)/t^2 = 16025 is not a perfect square.

So, adding the values of all possible values of A , B A, B , we get: 144 + 225 + 324 + 400 + 625 + 900 = 2618 144 + 225 + 324 + 400 + 625 + 900 = \boxed{2618} .

Kazem Sepehrinia
Jul 26, 2015

If A = B A=B , then A # B B = A # A A = 1001 A A = 1001 \frac{A \text{\#}B}{B}=\frac{A \text{\#}A}{A}=\frac{1001A}{A}=1001 will not be a square. Therefore B > A B>A . Let B = b 2 B=b^2 and A = a 2 A=a^2 , where 10 a < b 31 10\le a<b\le 31 .

Note that if A # B B \frac{A \text{\#}B}{B} is a square, then B A # B B = A # B B \frac{A \text{\#}B}{B}=A \text{\#}B will be a square too. So we just need to check one of them. Hence problem reduces to finding pairs of ( a , b ) (a, b) , where both of b 2 a 2 b^2-a^2 and a 2 # b 2 b 2 \frac{a^2 \text{\#}b^2}{b^2} are squares. Let a = m d a=md and b = n d b=nd , where gcd ( a , b ) = d \gcd(a, b)=d . We get a 2 # b 2 b 2 = 1000 m 2 n 2 + 1 = k 2 \frac{a^2 \text{\#}b^2}{b^2}=1000 \frac{m^2}{n^2}+1=k^2 It follows that n 2 1000 n^2 |1000 because gcd ( m , n ) = 1 \gcd(m, n)=1 . So only possible values for n n will be 2 , 5 , 10 2, 5, 10 . Since m < n m<n and gcd ( m , n ) = 1 \gcd(m, n)=1 we have a few cases to check. Only pair of ( m , n ) (m, n) that makes 1000 m 2 n 2 + 1 1000 \frac{m^2}{n^2}+1 square is ( 3 , 5 ) (3, 5) .

Now 4 d 6 4 \le d \le 6 and there are three pairs of ( a = m d , b = n d ) (a=md, b=nd) to check. all three of them makes both of b 2 a 2 b^2-a^2 and a 2 # b 2 b 2 \frac{a^2 \text{\#}b^2}{b^2} squares and they are ( a , b ) = ( 12 , 20 ) , ( 15 , 25 ) , ( 18 , 30 ) (a, b)=(12, 20), (15, 25), (18, 30) The answer will be 1 2 2 + 2 0 2 + 1 5 2 + 2 5 2 + 1 8 2 + 3 0 2 = 2618 12^2+20^2+15^2+25^2+18^2+30^2=2618

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...