35
$\begingroup$

I need to prove the following, but I am not able to do it. This is not homework, nor something related to research, but rather something that came up in preparation for an exam.

If $n = 1 + m$, where $m$ is the product of four consecutive positive integers, prove that $n$ is a perfect square.

Now since $m = p(p+1)(p+2)(p+3)$;

$p = 0, n = 1$ - Perfect Square

$p = 1, n = 25$ - Perfect Square

$p = 2, n = 121$ - Perfect Square

Is there any way to prove the above without induction? My approach was to expand $m = p(p+1)(p+2)(p+3)$ into a 4th degree equation, and then try proving that $n = m + 1$ is a perfect square, but I wasn't able to do it. Any idea if it is possible?

  • 15
    I assume you posted this from your smartphone in the bathroom during your exam ;)2012-06-07
  • 12
    @KartikAnand I was just joking, hence the ;)2012-06-07
  • 1
    @Wipqozn no worries ;) (I knew :P )2012-06-08
  • 2
    haha, you had me worried there with your comment :P2012-06-08
  • 1
    In one sentence: $$ $$ Consider $p(p+3)=p^2+3p:=n$ and $(p+1)(p+2)=p^2+3p+2=n+2$ so that the product plus one is $n^2 + 2n + 1 = (n+1)^2 = (p^2 + 3p + 1)^2$.2018-06-29

12 Answers 12

51

Your technique should have worked, but if you don't know which expansions to do first you can get yourself in a tangle of algebra and make silly mistakes that bring the whole thing crashing down.

The way I reasoned was, well, I have four numbers multiplied together, and I want it to be two numbers of the same size multiplied together. So I'll try multiplying the big one with the small one, and the two middle ones.

$$p(p+1)(p+2)(p+3) + 1 = (p^2 + 3p)(p^2 + 3p + 2) + 1$$

Now those terms are nearly the same. How can we force them together? I'm going to use the basic but sometimes-overlooked fact that $xy = (x+1)y - y$, and likewise $x(y + 1) = xy + x$.

$$\begin{align*} (p^2 + 3p)(p^2 + 3p + 2) + 1 &= (p^2 + 3p + 1)(p^2 + 3p + 2) - (p^2 + 3p + 2) + 1 \\ &= (p^2 + 3p + 1)(p^2 + 3p + 1) + (p^2 + 3p + 1) - (p^2 + 3p + 2) + 1 \\ &= (p^2 + 3p + 1)^2 \end{align*}$$ Tada.

  • 0
    Huh, so satisfying.2012-06-07
  • 1
    Wow you did it, but tell me one thing.You said "I have four numbers multiplied together, and I want it to be two numbers of the same size multiplied together. ", but why? I mean 1 is still being added to expression.2012-06-07
  • 0
    @KartikAnand: He meant $1$ and $(p^2 + 3p)(p^2 + 3p + 2)$ by those two terms which is an addition but we want a multiplication.2012-06-07
  • 0
    @Gigili Thank you, got it :)2012-06-07
  • 8
    Well, I was kind of ignoring the 1 for the time being; I wanted two numbers *roughly* the same, and I thought the details likely to work themselves out :)2012-06-07
  • 0
    @benmachine would it have mattered, if I multiplied the four numbers without considering as to make them two numbers roughly equal?2012-06-07
  • 0
    @KartikAnand: well, if you're more off with your initial guess, you have to do more adjusting later on, and it's less obvious what the right thing to do is. Say you started with multiplying the first two and the last two instead: you'd get $(p^2 + p)(p^2 + 5p + 6)$. Now the $p$ terms don't match, so you have to worry about that as well as the units: you *can* fix it, but you have to be a bit cleverer. If you don't multiply the four numbers into two quadratics, just a quartic, then this technique doesn't really offer you any insights, and you might as well use one of the other answers.2012-06-07
  • 0
    @benmachine thanks got it, and your technique is good, specially the part "xy=(x+1)y−x and x(y+1)=xy+x", it'll seriously come in handy, thanks again2012-06-07
  • 10
    Slightly smoother: When you are at $(p^2+3p)(p^2+3p+2)+1$, let $x=p^2+p+1$, We are looking at $(x-1)(x+1)+1=x^2-1+1=x^2$.2012-06-07
  • 3
    @AndréNicolas make it 3p in the expression for x2012-06-07
  • 1
    @AndréNicolas: I actually did that first, but I wanted to give a greater insight into how I might have come up with that idea – I tried to make my reasoning less "magic".2012-06-07
  • 0
    @KartikAnand: Thanks, yes there is a typo above, $x=p^2+3p+1.2012-06-07
  • 0
    @Kartik The essence is clearer if one examines a generalization - see my answer.2012-06-07
  • 11
    This goes by what I like to call the 'Mathematics of wishful thinking' : there is a solution, we sort of know what it should look like, and so we go and hope that everything works out. +12012-06-07
  • 0
    @mixedmath I like this 'Mathematics of wishful thinking', because to me maths has always been like something that should come in your dream before you can do something about it :)2012-06-08
  • 0
    Another "slightly smoother" approach is just to let $x = p^2 + 3p$; then you have $x(x+2) + 1 = x^2 + 2x + 1 = (x+1)^2 = (p^2 + 3p + 1)^2$ as desired.2016-08-15
40

$(n-1)(n+1)+1 = n^{2}$.

Note that $(n+1)-(n-1)=2$.

With this in mind

$$\begin{align*} p(p+1)(p+2)(p+3)+1 &= (p^{2}+3p)(p^{2}+3p+2)+1 \\ &= [(p^{2}+3p+1)-1][(p^{2}+3p+1)+1]+1 \\ &= (p^{2}+3p+1)^2 \end{align*}$$

  • 0
    Some simple observations oft lead to marvelous discoveries, greatly confirmed here.2012-06-07
  • 6
    That's beautiful!2012-06-07
14

Below I present a generalization. $ $ Using the abbreviations$\rm\ \ c = a\!+\!b,\ \ \color{red}d = ab/2\:\ $ we compute

$$\rm\begin{eqnarray} &&\rm\qquad\quad\ \color{blue}{(x\!+\!a)\,(x\!+\!b)}\,(x\!+\!c)\,x &=&\rm\, \color{blue}{(x^2\!+cx\ \ +\ \ ab\ \ \ \, )}\,(x^2+cx\:\!) \\ && &=&\rm\, (x^2\!+cx+d\ \,\color{red}{+\, d})\,(x^2+cx+d\, \color{red}{-\,d}) \\ && &=&\rm\, (x^2\!+cx+d)^2\! \color{red}{- d^2} \\ \rm b=2\quad &\Rightarrow&\rm\quad\ \ \ \ x(x+a)(x\!+\!2)(x\!+\!a\!+\!2) &=&\,\rm (x^2\!+(a\!+\!2)\,x+a)^2 -a^2 \\ \rm a=1\quad &\Rightarrow&\rm\qquad\quad\ \ \ x(x\!+\!1)(x\!+\!2)(x\!+\!3) &=&\rm\, (x^2\!+3\:\!x+1)^2 -1\ \ \ as\ sought. \end{eqnarray}$$

14

Here's another way which begins by exploiting a symmetry in the expression.

Notice that if you substitute $x=p+\frac{3}{2}$, the expression becomes

$$\left(x-\frac{3}{2}\right)\left(x-\frac{1}{2}\right)\left(x+\frac{1}{2}\right)\left(x+\frac{3}{2}\right) + 1$$

Now see that the terms make the product of 2 differences of squares

$$\begin{align} & \quad \left(x+\frac{3}{2}\right)\left(x-\frac{3}{2}\right)\left(x+\frac{1}{2}\right)\left(x-\frac{1}{2}\right) + 1 \\&= \left(x^2-\frac{9}{4}\right)\left(x^2-\frac{1}{4}\right) + 1 \\ &= \left(x^4 - \frac{10}{4} x^2 + \frac{9}{16}\right) + 1 \\ &= x^4 - \frac{10}{4} x^2 + \frac{25}{16} \\ &= \left(x^2 - \frac{5}{4}\right)^2 \\ &= \left(p^2 + 3p + 1\right)^2 \end{align}$$

which is a perfect square.

  • 0
    You miss one final step; to see that it is a perfect square *of an integer*, you need that $x^2 - 5/4$ is an integer. In this case you could say you are "lucky" that $2 \cdot (3/2), (3/2)^2 - 5/4 \in \mathbb{N}$.2012-06-07
  • 1
    @TMM: Or you could just say that it's an integer which is the perfect square of a rational number, which makes it the perfect square of an integer.2012-06-07
  • 0
    Yes, I did miss the final step, but there's no luck involved - it's straightforward algebra that x^2 - 5/4 is an integer. See my edit which completes the proof.2012-06-08
9

Set $p+1.5=q$. Now $$ \begin{align*}m &= (q-1.5)(q-0.5)(q+0.5)(q+1.5)+1 \\ &= (q-1.5)(q+1.5)(q-0.5)(q+0.5)+1 \\ &= (q^2 - 2.25)(q^2-0.25)+1 \\ \end{align*}$$

Let $q^2 = r$.

$$\begin{align*} m &= (r-2.25)(r-0.25)+1\\ &= r^2-2.5a+1.5625 \\ &= (r-1.25)^2. \end{align*}$$

This is a perfect square since r ends in 0.25 as q ends in 0.5

Basically the substitution converted it from a fourth degree to a quadratic which made it easy to deal with.

  • 1
    I like this method. The first thing you do is try to make the equation at the top more symmetrical, which was basically my idea, but we went about it in different ways.2012-06-07
  • 0
    @benmachine totally agree, but I just don't that like the number 1.52012-06-08
7

$$1+p(p+1)(p+2)(p+3)=1+ \dots +p^4.$$

If you want a general formula, it must be a square either of the form $(p^2+cp+1)^2$ or $(p^2+cp-1)^2$ for some constant $c$.

Expand the squares and the original product and match up two terms to calculate $c$. Verify that the other coefficients are correct as well.


Details:

The expansion of the product is $p^4+6p^3+11p^2+6p+1$.

The expansions of the squares are $p^4 + 2cp^3+c^2p^2\pm2p^2\pm2cp+1$.

Comparing the coefficients of $p^3$ gives $c=3$ which evidently works with the plus sign, so we get $(p^2+3p+1)^2$.

6

If I am missing something I will take this answer down, but the following seems responsive to your question.

If

$m = 1 + x(x+1)(x+2)(x+3)$ we can expand this as $1+6x+11x^2+6x^3+x^4$.

This is

$m = (1+3x+x^2)^2$

So when x is an integer, this shows that m is a perfect square, without induction.

  • 0
    How did you factorise the quartic?2012-06-07
  • 0
    @benmachine: I basically used Phira's process (below) and guessed the constant.2012-06-07
  • 1
    @benmachine you can also do $(x^2+ax+b)^2 = 1+6x+11x^2+6x^3+x^4$ and that is easy to solve for $a$ and $b$.2012-06-07
3

I think there are two issues here. One is constructing the quartic, which just depends on you doing the algebra correctly. The second is proceeding to factorise the quartic. It would be easier to factorise it if you know what the factorisation is going to be.

To discover this, I tried a few examples. For $p=7$, the quartic gives $5041=71^2$. For $p=14$, the quartic gives $57121=239^2$. I noticed that $71=72-1=8\times9-1$ and $239=15\times16-1$.

This suggested that the quartic was $((p+1)(p+2)-1)^2$.

Once you know the answer, it is easy to find it!

1

Take $p^2$ common after multiplying.
Then put $p +1/p =y$ and solve.

You will get the answer.

1

I have to add what I think is a 'dumb' way to do it by hand (with paper) as opposed to Alex B. succinct cleverness:

First, multiply out the product to get $p^4 + 6p^3 + 11p^2 + 6p + 1$.

Since this is a square, it must be a quadratic $p^2 + x p + y$.

Squaring the quadratic, ignoring a lot of the cruft, and just looking at just the second and last coefficients

$$6 = x + x$$

and

$$1 = y^2$$

and you're done.

0

Expanding $p(p+1)(p+2)(p+3)+1$ we get

$$p^4+6p^3+11p^2+6p+1$$

Note that $p^4$ is $(p^2)^2$, so this is equal to a square plus something extra. If this is to be a square number, then the extra must be a sum of odd numbers starting with $2p^2+1$, that is, we must have

$$6p^3+11p^2+6p+1=\sum^n_{k=0}(2(p^2+k)+1)$$

for some $n$. That sum can be computed to be

$$(n+1)(2p^2+1)+(n+1)n$$

and now it's quite easy to see that there's only one possible choice for $n$. Indeed, we want this to be a cubic in $p$, so $n$ must be linear in $p$. The coefficient of the linear term must be $3$, so that we get a cubic term of $6p^3$ after multiplying out. And since we want a constant term of $1$, we see that there can be no constant term in $n$. So $n=3p$ is the only possible choice. Plugging this in, we find that it works.

-2

Recursion on the square root, k(n)

n = lead integer

k(n) = square root [n(n+1)(n+2)(n+3) + 1]


k(1)^2 = 25

k(2)^2 = 121

k(3)^2 = 361

k(4)^2 = 841

k(5)^2 = 1681


k(1) = 5

k(2) = 11 = 5+ 6 = 5 + 2*(2+1)

k(3) = 19 = 11+ 8 = 11 + 2*(3+1) = 5 + 2 * ((2+1) + (3+1))

k(4) = 29 = 19+10 = 19 + 2*(4+1) = 5 + 2 * ((2+1) + (3+1) + (4+1))

k(5) = 41 = 29+12 = 29 + 2*(5+1) = 5 + 2 * ((2+1) + (3+1) + (4+1) + (5+1))


k(n) = 5 + 2 * ( (n+1)(n+2)/2 - (1+2) )

 = (n+1)(n+2) - 1 

induction step

k(n+1) = k(n) + 2(n+2)

   = (n+1)(n+2) - 1   + 2(n+2)     = (n+2)(n+3) - 1 

k(n)^2 - 1 = ((n+1)(n+2))- 1)^2 - 1

        = ((n+1)(n+2))^2 - 2(n+1)(n+2)          = ((n+1)(n+2)) * ((n+1)(n+2) - 2)          = ((n+1)(n+2)) * (n^2 + 3n)          = n(n+1)(n+2)(n+3) 

!!!


Thinking a little more about k(n).


A rough approximation of the root of ( n(n+1)(n+2)(n+3) + 1 ) would be n^2.


We might improve it a bit by averaging the products of the outer and inner pair of factors,


k(n) = (n(n+3) + (n+1)(n+2)) / 2

   = (n+1)(n+2) -1 

Dead on. Surprising, no?