Trying to find the solutions of $3np+3n+2=n^2+p^2$ with n and p positive integers, I found out n=14 and p=4 is a solution, but I want to know if there are others.
What are the solutions of the equation $3np+3n+2=n^2+p^2$, with n and p positive integers?
130 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtThere are 3 best solutions below
On
There are base solutions $n=-1,p=-2$ and $n=-2,p=-2$ Starting with either one, you can use either of two recurrences
$$n' = 3 n - 8 p - 12 \\ p' = 8 n - 21 p - 30$$
and also:
$$n' = - 21 n + 8 p - 12 \\ p' = - 8 n + 3 p - 6$$
This gives the following four sets of solutions
Answers found with the help of the Alpertron, but it missed the $-2,-2$ base solution.
On
This is not an answer but a request for a manual derivation of all positive integer solutions. Below is my work which hit a brick wall. If helpful, anyone is welcome to piggyback off of my work.
Re-organizing terms, $\;n^2 + n(-3p - 3) + (p^2 - 2) = 0 \;\Rightarrow\;$
$n = \frac{1}{2}\left[3p+3 \pm \sqrt{5p^2 + 18p + 17}\;\right].$
Therefore, there exists $k$ such that $3p+3+k$ is an even positive integer and
$\;5p^2 + 18p + (17-k^2) = 0 \;\Rightarrow\;$
$p = \frac{1}{10}\left[\;-18 \pm \frac{1}{2}\sqrt{5k^2 - 4}\;\right]. $
My knowledge of Pell Equations is limited to $x^2 - Dy^2 = \pm 1.$
My understanding (which could be in error) is that there has been work done on (for example) $L^2 - 5k^2 = -4.$

This is a slight variant of Vieta Jumping. For a given solution $(n,p)$ we can travel around the given hyperbola by $$ (n,p) \mapsto (3p+3 - n, p) $$ and $$ (n,p) \mapsto (n, 3n-p) $$ To keep going, alternate the maps. If you double any mapping you go back where you started
It is also possible to separate the variables. The sequence of $n$ values obeys $$ n_{j+2}= 7 n_{j+1} - n_j + 6 \; , $$ while the sequence of $p$ values obeys the similar $$ p_{j+2}= 7 p_{j+1} - p_j + 9 \; . $$ Each $n$ or $p$ value occurs in two consecutive solutions, owing to the zigzag way the solutions move out on the two branches of the hyperbola in the first quadrant.