Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if it is possible to find out all $n \geq 1$, such that $3n^2+2n$ has an integral square root, that is, there exists $a \in \mathbb{N}$ such that $3n^2+2n = a^2$

Also, similarly for $(n+1)(3n+1)$.

Thanks for any help!

share|cite|improve this question
Hint: Notice that your equation is the same as $n(3n+2) = a^2$. Now split into cases, either n is even or odd. In the odd case $n$ and $3n+2$ are coprime (check this), so that the only way for the product to be square is if both terms are squares themselves. From here play around with the resulting equations to turn into a Pell style equation. For the even case this is similar, just need to do some cancellation of $2$'s. – fretty Jul 22 '12 at 11:06
up vote 4 down vote accepted

$3n^2+2n=a^2$, $9n^2+6n=3a^2$, $9n^2+6n+1=3a^2+1$, $(3n+1)^2=3a^2+1$, $u^2=3a^2+1$ (where $u=3n+1$), $u^2-3a^2=1$, and that's an instance of Pell's equation, and you'll find tons of information on solving those in intro Number Theory textbooks, and on the web, probably even here on

Try similar manipulations for your other question.

share|cite|improve this answer
Lots of students learn the technique of completing the square, but if you tell a class there is a standard technique in algebra for reducing a problem involving a quadratic polynomial with a first-degree term to a problem involving a quadratic polynomial with no first-degree term, and ask what it's called, they often take a while to figure out what you're talking about. – Michael Hardy Jul 23 '12 at 3:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.