Can you solve this equation involving the sum of digits of a positive integer?

  • Context: MHB 
  • Thread starter Thread starter anemone
  • Start date Start date
Click For Summary
SUMMARY

The equation to solve is x + P(x) + P(P(x)) = 1993, where P(x) denotes the sum of the digits of the positive integer x. The discussion emphasizes the need to evaluate the properties of digit sums and their implications on the integer solutions. The solution involves iterating through potential values of x and calculating P(x) and P(P(x)) until the equation holds true.

PREREQUISITES
  • Understanding of digit sums and their properties
  • Basic knowledge of algebraic equations
  • Familiarity with iterative problem-solving techniques
  • Experience with integer programming concepts
NEXT STEPS
  • Research methods for calculating digit sums in programming languages
  • Explore integer programming techniques for solving equations
  • Learn about recursive functions and their applications in digit manipulation
  • Investigate similar mathematical problems involving digit sums and constraints
USEFUL FOR

Mathematicians, computer scientists, and anyone interested in solving digit-related equations or exploring properties of integers.

anemone
Gold Member
MHB
POTW Director
Messages
3,851
Reaction score
115
If $P(x)$ represents the sum of the digits of a positive integer $x$. Solve $x+P(x)+P(P(x))=1993$.
 
Mathematics news on Phys.org
anemone said:
If $P(x)$ represents the sum of the digits of a positive integer $x$. Solve $x+P(x)+P(P(x))=1993$.

x mod 9 = P(x) mod 9 = P(P(x)) mod 9 = say k

so x + P(x) + P(P(x)) = 3 k mod 9

but x + P(x) + P(P(x)) mod 9 = 4 mod 9

as 3 is a factor of 9 there is no y such that 3y = 4 mod 9

so no solution
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K