Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. 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

I was playing with some numbers and just realized that:

For any 3 consecutive numbers X, Y and Z: $Y^2$ = (X*Z) + 1

For eg: Consider numbers 171, 172 and 173

$172^2$ = 29584


171*173 = 29583

Can anyone tell me if there is any proof for this and what it is known as?

share|cite|improve this question
For your next trick, see what kind of number you get when you multiply four consecutive whole numbers, and add 1. – Gerry Myerson Jul 4 '12 at 10:22
up vote 6 down vote accepted

Let the middle number be $x$; the other two are $x-1$ and $x+1$. Basic algebra tells us that $(x-1)(x+1)=x^2-1$, and therefore $x^2=(x-1)(x+1)+1$. (This is true even if $x$ is not an integer.)

share|cite|improve this answer

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.