How to Solve a Logic Problem with Numbers Using Equations?

  • Thread starter Thread starter mhill
  • Start date Start date
  • Tags Tags
    Logic Numbers
AI Thread Summary
To solve the logic problem involving the numbers ABCD and CDAB, the equation 2(ABCD) = CDAB - 5 can be restructured by letting X = AB and Y = CD. This leads to the Diophantine equation -199X + 98Y = 5, which has an infinite number of integer solutions. However, only one solution will yield two-digit positive integers for both X and Y. The discussion emphasizes the need for a more elegant approach rather than brute force methods. Understanding the relationship between the digits and their positional values is crucial for finding the correct solution.
mhill
Messages
180
Reaction score
1

Homework Statement



given a number of four ciphers ABCD and another four cipher number CDAB get the values of A,B,C,D if we know that 2x (ABCD)=CDAB-5

Homework Equations



2X (ABCD)=CDAB-5

The Attempt at a Solution



no idea.. i have try by brute force but got no results only incongruences , for example B=-3 or similar here '2 x' means multiplication
 
Physics news on Phys.org
You need to be a bit more elegant about this. Split it into powers of ten... for example in the ABCD cipher, the "A" is 100 times more value than the "A"
 
no way , i get weird responses such us A=c=0 and B=-5/3 how are these kind of problems solved in Number theory ?? thanks.
 
mhill said:

Homework Statement



given a number of four ciphers ABCD and another four cipher number CDAB get the values of A,B,C,D if we know that 2x (ABCD)=CDAB-5

Homework Equations



2X (ABCD)=CDAB-5

The Attempt at a Solution



no idea.. i have try by brute force but got no results only incongruences , for example B=-3 or similar here '2 x' means multiplication
Notice that AB and CD always appear together. I would do it this way:

Let X= AB and Y= CD. Then the equation says 2(100X+ Y)= 100Y+ X- 5. Combining the X and Y terms we get the Diophantine equation
-199X+ 98Y= 5. Do you know how to solve that? It has an infinite number of integer solutions but only one that gives a two digit positive integer for both X and Y.
 
This looks quite similar to https://www.physicsforums.com/showthread.php?t=230969 by the way.
 
Very similar! That's why I deleted that thread.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top