0

I want to find all integer solutions for m and n such that $p=\frac{n^2-1}{m^2}$, where p is a prime number

as an example, I plugged in p=3 in wolfram and I got that the following values of m and n would work

$m=\pm \frac{(2-\sqrt3)^k-(2+\sqrt3)^k}{2 \sqrt3}$

$n=\pm \frac{1}{2} (-(2-\sqrt3)^k-(2+\sqrt3)^k), k\in Z, k\ge1$

but, how does wolfram get this? how could I do it for a given prime p other than 3?

Alosapien
  • 95
  • 8

2 Answers2

0

The number of primes that exist is infinite, you will get infinite solutions. This statement will never stop giving solutions but if you want to start taking them out, I suggest you think that if you make $m$ be $1$, you are going to draw a large number of them. I hope it has been helpful for you :))

0

It's just Pell's equation. It's hard to solve the prpblem if you don't already know this equation

  • Why not you write out Pell's equation so the OP doesn't have to go searching? An answer should provide a full answer, with reference links if necessary – lioness99a May 17 '17 at 09:55