SOLUTION: Find all positive integers $n$ for which $n^2 - 19n + 99$ is a perfect square.

Algebra.Com
Question 1074625: Find all positive integers $n$ for which $n^2 - 19n + 99$ is a perfect square.
Answer by KMST(5328)   (Show Source): You can put this solution on YOUR website!
TIP:
When I see $ wrapping equations,
it remind me of LATEX,
and makes me suspect you come from artofproblemsolving.
We use triple curly brackets, like {, here.
I am going to look at the embarrassingly simpler solution in that website
as soon as I finish typing my awkward solution here.

ONE WAY:
We want to be true
for some positive integers and .








Let me abbreviate with the change of variables
,
knowing that is a positive, even integer,
and is an integer.
The equation becomes
, so much easier to write,
and immediately we think of
.
Are those factors in brackets positive or negative?
We knew that ,
so --> --> ,
so whether or ,
and .
Back to the product of positive integer factors
.
The factors could be 1 and 35 or 5 and 7.
We have 4 possibilities:
-->-->-->
-->-->-->
-->-->-->
-->-->-->

ANOTHER WAY:
<--> , so if ,
-->--> .
The two perfect squares we look for, and ,
cannot be too large if their difference is only .
There are not many possible solutions,
and they will all be close to the of the vertex.
So, listing values for around ,
(or listing values for for around ),
until you find a perfect square is an option.

PS: Actually, it was not that the artofproblemsolving solution was so much simpler,
but that they skip steps/explanations that "should be obvious,"
so they do not need to write as much.
If you get all those steps, artofproblemsolving is a fun site,
but I tend to/like to overexplain, so I belong at this website.

RELATED QUESTIONS

Find all positive integers n for which n^2 - 19n + 59 + n^2 + 4n - 31 is a perfect... (answered by CPhill)
Find all the positive integers for which n!+5 is a perfect... (answered by richard1234)
How can i find all the positive integers "n" so that 2^17 + 17 * 2^12 + 2^n is a... (answered by richard1234)
Hello, I have a quick question and would like to see the answer thank you. Please... (answered by Edwin McCravy,Mohammad123)
For how many integers n is n^2 + 18n + 13 a perfect... (answered by solver91311,jim_thompson5910,ikleyn)
If 9n^2-30n+c is a perfect square for all integers n, what is the value of... (answered by josgarithmetic)
Find all integers n for which (n^2+n+1)/(n-1) is an... (answered by josgarithmetic)
Determine all positive integers n for which {{{2^n + 1}}} is divisible by... (answered by mathie123)
Find all integers n for which \frac{n^2 + n + 1}{n - 2 + n^3} is an integer. (answered by CPhill,math_tutor2020)