Elementary number theory problem about finding a square number with digits with certain properties
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
Here's the problem I am working on:-
Find,showing your method, a six-digit integer n with the following properties:
$(1)$ $n$ is a perfect square
$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the ï¬Ârst three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"
Here's my approach:
Consider the first $3$ digits of $n$ as $x$
Now, $n=1000x+(x+1)$
Because $n$ is a perfect square,
$$m^2=1001x+1$$
Using the difference of two squares identity:
$$(m+1)(m-1)=1001x$$
Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.
Hence, $x=999$
Now, here the problem arises.
If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:
$9991000$
However, this is a $7$ digit number, making the initial condition false.
Where did I go wrong?
elementary-number-theory contest-math
add a comment |Â
up vote
3
down vote
favorite
Here's the problem I am working on:-
Find,showing your method, a six-digit integer n with the following properties:
$(1)$ $n$ is a perfect square
$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the ï¬Ârst three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"
Here's my approach:
Consider the first $3$ digits of $n$ as $x$
Now, $n=1000x+(x+1)$
Because $n$ is a perfect square,
$$m^2=1001x+1$$
Using the difference of two squares identity:
$$(m+1)(m-1)=1001x$$
Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.
Hence, $x=999$
Now, here the problem arises.
If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:
$9991000$
However, this is a $7$ digit number, making the initial condition false.
Where did I go wrong?
elementary-number-theory contest-math
1
$1001$ is not prime.
â Jaap Scherphuis
Aug 21 at 14:22
just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
â Ronald
Aug 21 at 14:28
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Here's the problem I am working on:-
Find,showing your method, a six-digit integer n with the following properties:
$(1)$ $n$ is a perfect square
$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the ï¬Ârst three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"
Here's my approach:
Consider the first $3$ digits of $n$ as $x$
Now, $n=1000x+(x+1)$
Because $n$ is a perfect square,
$$m^2=1001x+1$$
Using the difference of two squares identity:
$$(m+1)(m-1)=1001x$$
Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.
Hence, $x=999$
Now, here the problem arises.
If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:
$9991000$
However, this is a $7$ digit number, making the initial condition false.
Where did I go wrong?
elementary-number-theory contest-math
Here's the problem I am working on:-
Find,showing your method, a six-digit integer n with the following properties:
$(1)$ $n$ is a perfect square
$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the ï¬Ârst three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"
Here's my approach:
Consider the first $3$ digits of $n$ as $x$
Now, $n=1000x+(x+1)$
Because $n$ is a perfect square,
$$m^2=1001x+1$$
Using the difference of two squares identity:
$$(m+1)(m-1)=1001x$$
Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.
Hence, $x=999$
Now, here the problem arises.
If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:
$9991000$
However, this is a $7$ digit number, making the initial condition false.
Where did I go wrong?
elementary-number-theory contest-math
edited Aug 21 at 14:19
Clayton
18.3k22883
18.3k22883
asked Aug 21 at 14:11
user16701
856
856
1
$1001$ is not prime.
â Jaap Scherphuis
Aug 21 at 14:22
just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
â Ronald
Aug 21 at 14:28
add a comment |Â
1
$1001$ is not prime.
â Jaap Scherphuis
Aug 21 at 14:22
just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
â Ronald
Aug 21 at 14:28
1
1
$1001$ is not prime.
â Jaap Scherphuis
Aug 21 at 14:22
$1001$ is not prime.
â Jaap Scherphuis
Aug 21 at 14:22
just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
â Ronald
Aug 21 at 14:28
just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
â Ronald
Aug 21 at 14:28
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
3
down vote
Everything is fine upto
(m+1)(m-1)=1001x
After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$
This is not true, for instance:
11*9=99=33*3, yet, we don't have 33=11 nor 9=3
add a comment |Â
up vote
1
down vote
Try looking at it this way
$m^2-1 = 1001x$ if and only if
$m equiv pm 1 pmod7$ ,
$m equiv pm 1 pmod11$, and
$m equiv pm 1 pmod13$
beginarrayr
n & mod 7 & mod11 & mod13 \
hline
11cdot 13 = 143 & 3 & 0 & 0 \
7 cdot 13 =91 & 0 & 3 & 0 \
7 cdot 11=77 & 0 & 0 & 12 \
hline
-2 cdot 143 = -286 & 1 & 0 & 0 \
4 cdot 91 = 364 & 0 & 1 & 0 \
-1 cdot 77 = -77 & 0 & 0 & 1 \
hline
endarray
So $m equiv pm 286 pm 364 pm 77 pmod1001$
beginarrayr
m & m pmod1001 & m^2 \
hline
286 + 364 + 77 & 727 & 528529 \
286 + 364 - 77 & 573 & 328329 \
286 - 364 + 77 & 0 & 0 \
286 - 364 - 77 & 846 & 715716 \
-286 + 364 + 77 & 155 & 24025 \
-286 + 364 - 77 & 1 & 1 \
-286 - 364 + 77 & 428 & 183184 \
-286 - 364 - 77 & 274 & 75076 \
hline
endarray
add a comment |Â
up vote
0
down vote
Solve using Chinese remainder theorem
as $1001=13cdot7cdot11, $
$$mequivpm1pmod13$$
$mequivpm1pmod7$
$mequivpm1pmod11$
But $mnotequivpm1pmod1001$
@Fabio, Thanks for the observation
â lab bhattacharjee
Aug 21 at 15:23
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Everything is fine upto
(m+1)(m-1)=1001x
After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$
This is not true, for instance:
11*9=99=33*3, yet, we don't have 33=11 nor 9=3
add a comment |Â
up vote
3
down vote
Everything is fine upto
(m+1)(m-1)=1001x
After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$
This is not true, for instance:
11*9=99=33*3, yet, we don't have 33=11 nor 9=3
add a comment |Â
up vote
3
down vote
up vote
3
down vote
Everything is fine upto
(m+1)(m-1)=1001x
After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$
This is not true, for instance:
11*9=99=33*3, yet, we don't have 33=11 nor 9=3
Everything is fine upto
(m+1)(m-1)=1001x
After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$
This is not true, for instance:
11*9=99=33*3, yet, we don't have 33=11 nor 9=3
answered Aug 21 at 14:20
F.Carette
4288
4288
add a comment |Â
add a comment |Â
up vote
1
down vote
Try looking at it this way
$m^2-1 = 1001x$ if and only if
$m equiv pm 1 pmod7$ ,
$m equiv pm 1 pmod11$, and
$m equiv pm 1 pmod13$
beginarrayr
n & mod 7 & mod11 & mod13 \
hline
11cdot 13 = 143 & 3 & 0 & 0 \
7 cdot 13 =91 & 0 & 3 & 0 \
7 cdot 11=77 & 0 & 0 & 12 \
hline
-2 cdot 143 = -286 & 1 & 0 & 0 \
4 cdot 91 = 364 & 0 & 1 & 0 \
-1 cdot 77 = -77 & 0 & 0 & 1 \
hline
endarray
So $m equiv pm 286 pm 364 pm 77 pmod1001$
beginarrayr
m & m pmod1001 & m^2 \
hline
286 + 364 + 77 & 727 & 528529 \
286 + 364 - 77 & 573 & 328329 \
286 - 364 + 77 & 0 & 0 \
286 - 364 - 77 & 846 & 715716 \
-286 + 364 + 77 & 155 & 24025 \
-286 + 364 - 77 & 1 & 1 \
-286 - 364 + 77 & 428 & 183184 \
-286 - 364 - 77 & 274 & 75076 \
hline
endarray
add a comment |Â
up vote
1
down vote
Try looking at it this way
$m^2-1 = 1001x$ if and only if
$m equiv pm 1 pmod7$ ,
$m equiv pm 1 pmod11$, and
$m equiv pm 1 pmod13$
beginarrayr
n & mod 7 & mod11 & mod13 \
hline
11cdot 13 = 143 & 3 & 0 & 0 \
7 cdot 13 =91 & 0 & 3 & 0 \
7 cdot 11=77 & 0 & 0 & 12 \
hline
-2 cdot 143 = -286 & 1 & 0 & 0 \
4 cdot 91 = 364 & 0 & 1 & 0 \
-1 cdot 77 = -77 & 0 & 0 & 1 \
hline
endarray
So $m equiv pm 286 pm 364 pm 77 pmod1001$
beginarrayr
m & m pmod1001 & m^2 \
hline
286 + 364 + 77 & 727 & 528529 \
286 + 364 - 77 & 573 & 328329 \
286 - 364 + 77 & 0 & 0 \
286 - 364 - 77 & 846 & 715716 \
-286 + 364 + 77 & 155 & 24025 \
-286 + 364 - 77 & 1 & 1 \
-286 - 364 + 77 & 428 & 183184 \
-286 - 364 - 77 & 274 & 75076 \
hline
endarray
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Try looking at it this way
$m^2-1 = 1001x$ if and only if
$m equiv pm 1 pmod7$ ,
$m equiv pm 1 pmod11$, and
$m equiv pm 1 pmod13$
beginarrayr
n & mod 7 & mod11 & mod13 \
hline
11cdot 13 = 143 & 3 & 0 & 0 \
7 cdot 13 =91 & 0 & 3 & 0 \
7 cdot 11=77 & 0 & 0 & 12 \
hline
-2 cdot 143 = -286 & 1 & 0 & 0 \
4 cdot 91 = 364 & 0 & 1 & 0 \
-1 cdot 77 = -77 & 0 & 0 & 1 \
hline
endarray
So $m equiv pm 286 pm 364 pm 77 pmod1001$
beginarrayr
m & m pmod1001 & m^2 \
hline
286 + 364 + 77 & 727 & 528529 \
286 + 364 - 77 & 573 & 328329 \
286 - 364 + 77 & 0 & 0 \
286 - 364 - 77 & 846 & 715716 \
-286 + 364 + 77 & 155 & 24025 \
-286 + 364 - 77 & 1 & 1 \
-286 - 364 + 77 & 428 & 183184 \
-286 - 364 - 77 & 274 & 75076 \
hline
endarray
Try looking at it this way
$m^2-1 = 1001x$ if and only if
$m equiv pm 1 pmod7$ ,
$m equiv pm 1 pmod11$, and
$m equiv pm 1 pmod13$
beginarrayr
n & mod 7 & mod11 & mod13 \
hline
11cdot 13 = 143 & 3 & 0 & 0 \
7 cdot 13 =91 & 0 & 3 & 0 \
7 cdot 11=77 & 0 & 0 & 12 \
hline
-2 cdot 143 = -286 & 1 & 0 & 0 \
4 cdot 91 = 364 & 0 & 1 & 0 \
-1 cdot 77 = -77 & 0 & 0 & 1 \
hline
endarray
So $m equiv pm 286 pm 364 pm 77 pmod1001$
beginarrayr
m & m pmod1001 & m^2 \
hline
286 + 364 + 77 & 727 & 528529 \
286 + 364 - 77 & 573 & 328329 \
286 - 364 + 77 & 0 & 0 \
286 - 364 - 77 & 846 & 715716 \
-286 + 364 + 77 & 155 & 24025 \
-286 + 364 - 77 & 1 & 1 \
-286 - 364 + 77 & 428 & 183184 \
-286 - 364 - 77 & 274 & 75076 \
hline
endarray
answered Aug 21 at 15:23
steven gregory
16.7k22155
16.7k22155
add a comment |Â
add a comment |Â
up vote
0
down vote
Solve using Chinese remainder theorem
as $1001=13cdot7cdot11, $
$$mequivpm1pmod13$$
$mequivpm1pmod7$
$mequivpm1pmod11$
But $mnotequivpm1pmod1001$
@Fabio, Thanks for the observation
â lab bhattacharjee
Aug 21 at 15:23
add a comment |Â
up vote
0
down vote
Solve using Chinese remainder theorem
as $1001=13cdot7cdot11, $
$$mequivpm1pmod13$$
$mequivpm1pmod7$
$mequivpm1pmod11$
But $mnotequivpm1pmod1001$
@Fabio, Thanks for the observation
â lab bhattacharjee
Aug 21 at 15:23
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Solve using Chinese remainder theorem
as $1001=13cdot7cdot11, $
$$mequivpm1pmod13$$
$mequivpm1pmod7$
$mequivpm1pmod11$
But $mnotequivpm1pmod1001$
Solve using Chinese remainder theorem
as $1001=13cdot7cdot11, $
$$mequivpm1pmod13$$
$mequivpm1pmod7$
$mequivpm1pmod11$
But $mnotequivpm1pmod1001$
edited Aug 21 at 15:23
answered Aug 21 at 15:02
lab bhattacharjee
216k14152264
216k14152264
@Fabio, Thanks for the observation
â lab bhattacharjee
Aug 21 at 15:23
add a comment |Â
@Fabio, Thanks for the observation
â lab bhattacharjee
Aug 21 at 15:23
@Fabio, Thanks for the observation
â lab bhattacharjee
Aug 21 at 15:23
@Fabio, Thanks for the observation
â lab bhattacharjee
Aug 21 at 15:23
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2889917%2felementary-number-theory-problem-about-finding-a-square-number-with-digits-with%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
$1001$ is not prime.
â Jaap Scherphuis
Aug 21 at 14:22
just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
â Ronald
Aug 21 at 14:28