Find all the ways of writing N into x^2-y^2

  • Thread starter Thread starter ver_mathstats
  • Start date Start date
  • Tags Tags
    Writing
AI Thread Summary
The discussion focuses on finding all pairs of integers (x, y) such that x^2 - y^2 = 112. One solution identified is (11, 3), which factors as (x+y)(x-y) = 112. Participants clarify that modular arithmetic may not be necessary for this problem, emphasizing the importance of clear problem statements. Additional pairs of factors are suggested, with one method being to set x+y = N and x-y = 1. The conversation highlights the relevance of prime factorization in identifying solutions.
ver_mathstats
Messages
258
Reaction score
21
Homework Statement
When N=112, find the ways in which we can write it as x^2-y^2.
Relevant Equations
x^2-y^2, a^2 = b^2 mod(N)
We are required to find every way in which we can write 112 as x2-y2. I already found one way using a
2≡b2modN. The values 112≡32mod(112) work and we can factor it as 14x8=112, I am confused how to approach this further for determining other values or would I just stop here? If I do test more values how exactly would I know when to stop? Any help would be appreciated, thank you!
 
Physics news on Phys.org
ver_mathstats said:
Homework Statement:: When N=112, find the ways in which we can write it as x^2-y^2.
Relevant Equations:: x^2-y^2, a^2 = b^2 mod(N)

We are required to find every way in which we can write 112 as x2-y2. I already found one way using a
2≡b2modN. The values 112≡32mod(112) work and we can factor it as 14x8=112, I am confused how to approach this further for determining other values or would I just stop here? If I do test more values how exactly would I know when to stop? Any help would be appreciated, thank you!
Whenever you see ##x^2-y^2## you can automatically write ##(x-y)(x+y).## Here we have the task to write
$$
N = (x+y)(x-y) = 2\cdot 2 \cdot 2 \cdot 2 \cdot 7
$$
Hence, we have only two prime divisors ##p## of a product. What is a prime divisor? A number ##p## is called prime if ##p\,|\,a\cdot b## implies ##p\,|\,a## or ##p\,|\,b.## This is all you need.
 
  • Like
Likes ver_mathstats
ver_mathstats said:
Homework Statement:: When N=112, find the ways in which we can write it as x^2-y^2.
Relevant Equations:: x^2-y^2, a^2 = b^2 mod(N)

We are required to find every way in which we can write 112 as x2-y2. I already found one way using a
2≡b2modN. The values 112≡32mod(112) work and we can factor it as 14x8=112, I am confused how to approach this further for determining other values or would I just stop here? If I do test more values how exactly would I know when to stop? Any help would be appreciated, thank you!
A complete and coherent statement of the problem would be much appreciated.
 
SammyS said:
A complete and coherent statement of the problem would be much appreciated.
it is written completely and coherently :)
 
ver_mathstats said:
it is written completely and coherently :)
Hmmm...

ver_mathstats said:
Homework Statement:: When N=112, find the ways in which we can write it as x^2-y^2.
Relevant Equations:: x^2-y^2, a^2 = b^2 mod(N)

We are required to find every way in which we can write 112 as x2-y2
. I already found one way using a 2≡b2 modN. The values 112
≡32 mod(112) work and we can factor it as 14x8=112
As far as the problem statement is concerned, I believe a clearer statement would be "Find all pairs of values x and y for which ##x^2 - y^2 = 112##." As written, the problem statement doesn't say anything about equivalence classes, so I don't see how modular arithmetic plays a role in this problem.
Regarding your solution, ##11^2 - 3^2 = 112##, so x = 11 and y = 3. x + y = 14 and x - y = 8, so (x + y)(x - y) = 112, as required.

I see at least one more pair of factors of 112 that satisfy ##(x + y)(x - y) = 112##.
 
Mark44 said:
Hmmm...As far as the problem statement is concerned, I believe a clearer statement would be "Find all pairs of values x and y for which ##x^2 - y^2 = 112##."
I assumed it must be asking for pairs of (positive) integers
 
Mark44 said:
Hmmm...As far as the problem statement is concerned, I believe a clearer statement would be "Find all pairs of values x and y for which ##x^2 - y^2 = 112##." As written, the problem statement doesn't say anything about equivalence classes, so I don't see how modular arithmetic plays a role in this problem.
Regarding your solution, ##11^2 - 3^2 = 112##, so x = 11 and y = 3. x + y = 14 and x - y = 8, so (x + y)(x - y) = 112, as required.

I see at least one more pair of factors of 112 that satisfy ##(x + y)(x - y) = 112##.
Yes, I found the other solution.
 
Well, you can always look for the pair with :
x+y=N
x-y=1.
 
ver_mathstats said:
Yes, I found the other solution.
Using the prime factorization (Thanks @fresh_42 .) and the hints by @Mark44 , I found two pairs of integer solutions, in addition to the pair: ##(11,\ 3)## .
 
Back
Top