MHB Find Integer $n$: Reversed Digits = 999 - Prime < 6000

  • Thread starter Thread starter lfdahl
  • Start date Start date
  • Tags Tags
    Integer
AI Thread Summary
The discussion focuses on finding a prime integer \( n \) less than 6000 that meets specific criteria: the last two digits of \( n \) must be less than 10, and reversing the digits of \( n \) results in a number \( N \) such that \( N - n = 999 \). It is established that \( n \) must be a four-digit number, with the last digit being 3. Participants express gratitude for correct answers and contributions, highlighting collaborative problem-solving. The thread emphasizes the importance of the mathematical properties outlined in the problem. The solution ultimately leads to identifying the integer \( n \).
lfdahl
Gold Member
MHB
Messages
747
Reaction score
0
Determine the integer $n$ with the properties:

a). $n$ is a prime less than $6000$,
b). the number formed by the last two digits of $n$ is $< 10$, and
c). if the decimal digits of $n$ are reversed to obtain $N$, then $N − n = 999$.
 
Mathematics news on Phys.org
2003
 
greg1313 said:
2003

Thankyou very much, greg1313, for a correct answer!(Yes)

Would you perhaps like to show, how you came up with $2003$? (Talking)
 
lfdahl said:
Determine the integer $n$ with the properties:

a). $n$ is a prime less than $6000$,
b). the number formed by the last two digits of $n$ is $< 10$, and
c). if the decimal digits of $n$ are reversed to obtain $N$, then $N − n = 999$.
Let $n=\overline{abcd}$.
Then due to (a) we have a=0-5 and d=1,3,7,9.
And due to (b) we have c=0.
From (c) we get that $\overline{ab0d} + 999 = \overline{d0ba}$, so that:
- $d+9\to a$, implying that $d=a+1$, and thus $a=0,2$.
- $0+9+1\to b$, implying $b=0$.

0001 is not a prime and doesn't actually satisfy (c), so that only leaves 2003, which is the answer.
 
lfdahl said:
Thankyou very much, greg1313, for a correct answer!(Yes)
Would you perhaps like to show, how you came up with $2003$? (Talking)

[sp]From c), n is four digits, From a), the last digit of n is 3. The solution follows.[/sp]
 
I like Serena said:
Let $n=\overline{abcd}$.
Then due to (a) we have a=0-5 and d=1,3,7,9.
And due to (b) we have c=0.
From (c) we get that $\overline{ab0d} + 999 = \overline{d0ba}$, so that:
- $d+9\to a$, implying that $d=a+1$, and thus $a=0,2$.
- $0+9+1\to b$, implying $b=0$.

0001 is not a prime and doesn't actually satisfy (c), so that only leaves 2003, which is the answer.

Thankyou, I like Serena! - for your participation and nice solution!

P.S.:

- isn´t condition (c) satisfied by $0001$? $1000 - 0001 = 999$?
 
lfdahl said:
Thankyou, I like Serena! - for your participation and nice solution!

P.S.:

- isn´t condition (c) satisfied by $0001$? $1000 - 0001 = 999$?

lfdahl said:
- isn´t condition (c) satisfied by $0001$? $1000 - 0001 = 999$?
Isn't the number actually $1$ instead of $0001$?
Then, if we reverse its digits and subtract, don't we get $1-1=0\ne 999$?

After all, if we'd reverse and subtract $02003$, we'd get $30020 - 02003 = 28017 \ne 999$.
So it seems to me that it can't be the intention to have leading zeroes, can it?
 
I like Serena said:
Isn't the number actually $1$ instead of $0001$?
Then, if we reverse its digits and subtract, don't we get $1-1=0\ne 999$?

After all, if we'd reverse and subtract $02003$, we'd get $30020 - 02003 = 28017 \ne 999$.
So it seems to me that it can't be the intention to have leading zeroes, can it?
Thanks, I like Serena, I see your point.(Yes)
 
Back
Top