MathOverflow is a question and answer site for professional mathematicians. Join them; it only takes a minute:

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

Is there a hexagonal, triangular, square (apart from 0 and 1)?
In other words, is there a positive integer that is simultaneously

(1) a perfect square, $n^2$, $n \ge 2$,

(2) a triangular number, $\frac{m(m+1)}{2}$, $m$ an integer,

and (3) a (centered) hexagonal number, $(p+1)^3 - p^3$, $p$ an integer?

share|cite|improve this question
I'll repeat the comment I've made on this problem before: "I’m way to lazy to work out the details right now, but: the equations you are dealing with are a pair of quadratic equations in three variables. That means they probably cut out an elliptic curve. Assuming this is correct, we know from Siegel’s Theorem that there are only finitely many integral points."… – David Speyer Jul 14 '10 at 22:36
up vote 9 down vote accepted

The only solution is 1 - this was a question asked in a book by Gardner and proved by Charles Grinstead, On a Method of Solving a Class of Diophantine Equations , Mathematics of Computation, Vol. 32, No. 143 (Jul., 1978), pp. 936-940.


(N.B. The hexagonal numbers you are using are actually the centred hexagonal numbers - it's obvious usual hexagonal numbers are always triangular.)

share|cite|improve this answer

The question is equivalent to the system of quadratic Diophantine equations: $$8 n^2 = m'^2 - 1$$ $$4n^2 = 3p'^2 + 1$$ where $m'=2m+1$ and $p'=2p+1$. How to solve such systems is described in my paper: (see Theorem 6)

It is easy to obtain that the only nonegative solution is $n=1$, $m=1$, $p=0$.

share|cite|improve this answer

1225 is not a centered hexagonal number (which is the usual term for (3), see )

share|cite|improve this answer
Since 2 people already made the same mistake, I suggest to insert "centered" in the question. – Ale De Luca Jul 14 '10 at 23:07

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.