Integer Values of a Function

  • Thread starter drosser
  • Start date
Is there a quick way to find integer values of x that give integer values for y?


sqrt(R) rounded down<x<P/2

an equivalent equation is

x^2+Px+R=y y= a perfect square

sqrt(x^2+Px+R)= integer

P and R are integer values. They are very large.


Maybe a generalized equation or a program?


Insights Author
2018 Award
You could search for it in a brute force approach. Otherwise we probably need more information about ##P,R##, e.g. if ##P^2-4R## is a square in which case we have Pythagorean triplets as solutions, or the prime factor decomposition of them.

Want to reply to this thread?

"Integer Values of a Function" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving

Hot Threads