Special 4-Digit Square

A four digit integer a b c d \overline{abcd} satisfies the equation ( a b c d ) 2 = w x y z a b c d \left(\overline{abcd}\right)^2=\overline{wxyzabcd} where a , b , c , d , w , x , y , z a,b,c,d,w,x,y,z are not necessarily distinct digits and a 0 , w 0 a\ne 0,w\ne 0 . What is the value of w x y z \overline{wxyz} ?


The answer is 8790.

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

Daniel Liu
May 2, 2014

We see that a b c d × a b c d = w x y z a b c d \overline{abcd}\times \overline{abcd} =\overline{wxyzabcd} .

Subtracting a b c d \overline{abcd} from both sides, we get a b c d ( a b c d 1 ) = w x y z 0000 \overline{abcd}(\overline{abcd}-1)=\overline{wxyz0000} . Thus,

10000 a b c d ( a b c d 1 ) 10000\mid \overline{abcd}(\overline{abcd}-1)

In addition, since a b c d \overline{abcd} and ( a b c d 1 ) (\overline{abcd}-1) are consecutive integers, one must be even, and the other must be odd. Hence, either

[ 625 a b c d 16 ( a b c d 1 ) \left[\begin{array}{l}625\mid \overline{abcd}\\ 16\mid (\overline{abcd}-1)\end{array}\right. or

[ 16 a b c d 625 ( a b c d 1 ) \left[\begin{array}{l}16\mid \overline{abcd}\\ 625\mid (\overline{abcd}-1)\end{array}\right.

We can substitute x = a b c d x=\overline{abcd} to make notation easier.


Case 1

In this case, 625 x 625\mid x and 16 x 1 16\mid x-1 . We let x = 625 k x=625k . Thus 16 625 k 1 16\mid 625k-1 , or 625 k 1 0 ( m o d 16 ) 625k-1\equiv 0\pmod{16} .

This is simplified to k 1 ( m o d 16 ) k-1\equiv \pmod{16} , where k = 1 k=1 is the obvious answer.

However, when we plug back in k = 1 k=1 to solve for x x , we find that x = 625 x=625 , which is only a three-digit number. Thus, this case yields no solutions.

Case 2

In this second case, 16 x 16\mid x , so 625 x 1 625\mid x-1 . We let x 1 = 625 k x-1=625k . Thus, 16 625 k + 1 16\mid 625k+1 , or 625 k + 1 0 ( m o d 16 ) 625k+1\equiv 0 \pmod{16}

This can be simplified to k + 1 ( m o d 16 ) k+1\equiv \pmod{16} , at which k = 15 k=15 is an obvious solution.

Thus, x 1 = 625 15 = 9375 x-1=625*15=9375 , or x = a b c d = 9376 x=\overline{abcd}=9376 .

Finally, ( 9376 ) 2 = 87909376 \left(9376\right)^2=87909376 (we confirm the last 4 digits of the result is the same as the squared number) and we get an answer of 8790 \boxed{8790} .

@Daniel Liu, sorry for this, but I just checked one of my programs for 4-digit automorphic numbers and found that 9376^2 = 89709376, and so I got the answer. :D

Arjun Bharat - 7 years ago

@ w i l l b e u s e d t o m e a n " n o t i n t e r e s t e d i n t h i s d i g i t a t p r e s e n t . " S i n c e d 2 = @ d . d = 5 o r 6. N o t e 1 0 n ( 14 x + x y ) = 1 0 n + 1 x + 1 0 n ( 4 x + x y ) . S i m i l a r s e p a r a t i o n i s d o n e b e l o w . A l s o n o t e t h a t s q u a r e s h o u l d h a v e 8 t e r m s . a > 1 0 8 = 3162. W e h a v e ( 1 0 3 a + 1 0 2 b + 1 0 1 c + d ) 2 = 1 0 6 ( a 2 ) + 1 0 5 ( 2 a b ) + 1 0 4 ( b 2 + 2 a c ) + 1 0 3 ( 2 a d + 2 b c ) + 1 0 2 ( c 2 + 2 b d ) + 10 ( 2 c d ) + d 2 . S o f o r d = 5 , a b c d 2 = 1 0 6 ( a 2 ) + 1 0 5 ( 2 a b ) + 1 0 4 ( b 2 + 2 a c ) + 1 0 3 ( 10 a + 2 b c ) + 1 0 2 ( c 2 + 10 b ) + 10 ( 10 c ) + 5 2 . = 1 0 6 ( a 2 ) + 1 0 5 ( 2 a b ) + 1 0 4 ( b 2 + 2 a c + a ) + 1 0 3 ( 2 b c + b ) + 1 0 2 ( c 2 + c ) + 25. S o f o r d = 6 , a b c d 2 = 1 0 6 ( a 2 ) + 1 0 5 ( 2 a b ) + 1 0 4 ( b 2 + 2 a c ) + 1 0 3 ( 12 a + 2 b c ) + 1 0 2 ( c 2 + 12 b ) + 10 ( 12 c ) + 6 2 . = 1 0 6 ( a 2 ) + 1 0 5 ( 2 a b ) + 1 0 4 ( b 2 + 2 a c + a ) + 1 0 3 ( 2 a + 2 b c + b ) + 1 0 2 ( c 2 + 2 b + c ) + 10 ( 2 c ) + 36 . d = 6 : W e s h a l l i n v e s t i g a t e e a c h d i g i t a t a t i m e i n t h e s q u a r e e x p r e s s i o n w i t h t h e h e l p o f a b o v e . ( 1 0 1 ) t h d i g i t = c 10 ( 2 c ) + 36 L e t u s a s s u m e c f r o m 0 t o 9. S t o p w h e r e a s s u m e d v a l u e i s w h a t w e g e t b y c a l c u l a t i o n . L e t c = 1 10 2 + 36 = 5 6 , c = 5.. X X X . . . . . . . . . . c = 2 , 10 4 + 36 = 7 6.. c = 7.. X X X T h e p a t t e r n i s + 1 t o a s s u m e d v a l u e w h i l e + 2 t o c a l c u l a t e d v a l u e . S i n c e w e h a v e 10 2 a . S o c = 3 c a l c u l a t e d c = 9.. X X X . . . . . . c = 4 c a l c u l a t e d c = 11 = @ 1.. X X X . . . . . . . . . . c = 5 c = 3.. X X X c = 6 C = 5.. X X X X . . . . . . c = 7 c = 7.... C h e c k 7 6 2 = 57 76 O K . c = 7 . ( 1 0 2 ) t h d i g i t = b 1 0 2 ( c 2 + 2 b + c ) + 10 ( 2 c ) + 36 = 1 0 2 ( 56 + 2 b ) + 10 ( 14 ) + 36 = 5600 + 1 0 2 ( 2 b ) + 140 + 36 = 5776 + 1 0 2 ( 2 b ) . L e t b = 1 5776 + 1 0 2 2 = 5776 + 200 = 5 9 776 , b = 9.. X X X . . . . . . . b = 2 , 776 + 400 = 1 1 76.. b = 1.. X X X S a m e p a t t e r n a s a b o v e . . b = 2 + 1 = 3 b = 1 + 2 = 3.. C h e c k . 37 6 2 = 141 376 G O O D . b = 3 . ( 1 0 3 ) t h d i g i t = a n e g l e c t p o w e r h i g h e r t h a n 3. 1 0 3 ( 2 a + 2 b c + b ) + 1 0 2 ( c 2 + 2 b + c ) + 10 ( 2 c ) + 36 = 1 0 3 ( 2 a + 45 ) + 1 0 2 ( 85 ) + 140 + 36 = 1 0 3 ( 2 a ) + 1 0 3 45 + 1 0 2 85 + 176. = 1 0 3 ( 2 a ) + 45000 + 6200 + 176 = 1 0 3 ( 2 a ) + 51376. B u t a @ @ @ > 3162 , a n d w e h a v e a l r e a d y 376. S o w e s t a r t w i t h a = 3. a = 3 6000 + 51376 = 5 7 376.. a = 7.. X X X . . . . . . . . . . A g a i n s a m e p a t t e r n a s a b o v e . A s s u m e + 1 c a l c u l a t e d + 2. a = 4 c a l c u l a t e d . . a = 9.. X X X . . . . . . a = 5 c a l c u l a t e d . . a = 11 = @ 1...... a = 6 c a l c u l a t e d . . a = 3.. X X X . a = 7 c a l c u l a t e d . . a = 5.. X X X . . . . . . . a = 8 c a l c u l a t e d . . a = 7.. X X X . . . . a = 9 c a l c u l a t e d . . a = 9. C h e c k i n g 937 6 2 = 87909376 , O K . S o w x y z = 8790. @~will~be~used~to~mean~"not~interested~in~this~digit~at~present." \\ Since~d^2=@d. ~~d=5~~ or~~ 6.~~~~~Note~10^n(14x+xy)=10^{n+1}x+10^n(4x+xy).~~Similar~separation~is~done~below.\\ Also~note~that~square~should~have~8~terms.~\implies~a > \sqrt{10^8}=3162 .\\ We~have~(10^3a+10^2b+10^1c+d)^2 = 10^6*(a^2)+10^5*(2ab)+10^4*(b^2+2*ac)+10^3*(2ad+2bc)+10^2*(c^2+2bd)+10*(2cd)+d^2.\\ So~~for~d=5,~~\overline{abcd}^2= 10^6*(a^2)+10^5*(2ab)+10^4*(b^2+2*ac)+10^3*(10a+2bc)+10^2*(c^2+10b)+10*(10c)+5^2.\\ = 10^6*(a^2)+10^5*(2ab)+10^4*(b^2+2*ac+a)+ 10^3*(2bc +b)+ 10^2*(c^2+c) +25. \\ So~~for~d=6,~~\overline{abcd}^2= 10^6*(a^2)+10^5*(2ab)+10^4*(b^2+2*ac)+10^3*(12a+2bc)+10^2*(c^2+12b)+10*(12c)+6^2.\\ = \color{#3D99F6}{10^6*(a^2)+10^5*(2ab)+10^4*(b^2+2ac+a)+10^3*(2a+2bc+b)+10^2*(c^2+2b+c)+10*(2c)+36}.\\ {\Large d=6:-}~~We~ shall ~investigate~each~digit~at~a~time ~in~the~square~expression~with~the~help~of~above.\\ ~~~(10^1)^{th}digit=c~~~ 10*(2c)+36~~\\ ~~~~~~~~~~~~~~~Let~ us~assume~c~from~0~to~9.~ Stop~where~assumed~value~is~what~we~get~by~calculation.\\ ~~~~~~~~~~~~~~~Let~c=1--------10*2+36=\overline{5}6,~c=5..XXX..........c=2,-------10*4+36=\overline{7}6..c=7..XXX \\ The~pattern~is~+1~to~assumed~value~~while~+2~to~calculated~value.~Since~we~have~10*{\Huge 2}a.\\ ~~~~~~~~~~~~~~~So~c=3----calculatedc=9..XXX......c=4----calculatedc=11=@1..XXX..........c=5------c=3..XXX \\ ~~~~~~~~~~~~~~~c=6---------C=5..XXXX......c=7----------c=7....Check~76^2=57\overline{76}~~OK.~~~~\color{#EC7300}{c=7}.\\ ~~~(10^2)^{th}digit=b~~~\\ ~~~~~~~~~10^2*(c^2+2b+c)+10*(2c)+36=10^2(56+2b)+10*(14)+36=5600+10^2(2b)+140+36=5776+10^2*(2b).\\ ~~~~~~~~~~~~~~~Let~b=1--------5776+10^2*2=5776+200=5 \overline{9}776,~b=9..XXX.......b=2,-----776+400=1\overline{1}76..b=1..XXX \\ ~~~~~~~~~~~~~~~Same~pattern~as~above. .~~b=2+1=3----b=1+2=3..Check. ~376^2=141 \overline{376}~GOOD. ~~ \color{#EC7300}{b=3}.\\ ~~~(10^3)^{th}digit=a~~~neglect~power~higher~than~3.\\ ~~~~~~10^3*(2a+2bc+b)+10^2*(c^2+2b+c)+10*(2c)+36=10^3(2a+45)+10^2(85)+140+36=10^3*(2a)+10^3*45+10^2*85+176 .\\ ~~~~~~=10^3*(2a)+45000+6200+176=10^3*(2a)+51376.~~~But~~~a@@@>3162,~and~we~have~already~376.~So~we~start~with~a=3.\\ ~~~~~~~~a=3------6000+-51376=5 \overline{7}376..\implies~a=7..XXX.........\\ ~~~~~~~~.Again~same~pattern~as~above.~Assume~+1----calculated~+2. \\ ~~~~~~~~a=4-------calculated..a=9..XXX. [email protected]=6----calculated..a=3..XXX.~\\ ~~~~~~~~a=7-------calculated..a=5..XXX.......a=8-----calculated..a=7..XXX....a=9----calculated..a=9.\\ ~~~~~~~~Checking~9376^2=87909376, OK.\\ So~\overline{wxyz}=8790.\\
Proof of d=5 does not work, I will give shortly. In fact I had typed it but by mistake delete it!!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...