Math Help Forum: A problem

  1. #1
    Member
    Joined
    Nov 2007
    Posts
    108

    A problem

    I'm having difficulty with proving this problem. Can someone give some help?
    Prove that the sum of the first n natural numbers is a perfect square for infinitely many values of n.

    I don't really know if I interpret this question correctly. I know that the sum of the first n natural numbers is \frac{n(n+1)}{2}. But this is not in a form a perfect square, isn't it? I'm really confused on this.
    Follow Math Help Forum on Facebook and Google+

  2. Welcome to Math Help Forum - Click here to Register

    Welcome to the largest Math Help Forum, a free community dedicated to math help and math discussions.

    We welcome everyone and the community is free to join so register today and become part of our math family!

  3. #2
    MHF Contributor

    Joined
    May 2008
    Posts
    2,296
    Thanks
    5
    Quote Originally Posted by namelessguy View Post
    I'm having difficulty with proving this problem. Can someone give some help?
    Prove that the sum of the first n natural numbers is a perfect square for infinitely many values of n.

    I don't really know if I interpret this question correctly. I know that the sum of the first n natural numbers is \frac{n(n+1)}{2}. But this is not in a form a perfect square, isn't it? I'm really confused on this.
    it's quite simple if you're familiar with Pell equation (i think everybody is!) anyway, so we want to have n(n+1)=2k^2 for some integer k. equivalently (2n+1)^2 - 2(2k)^2 = 1, which is a Pell

    equation. thus if we let A= \left \{\frac{(3+2\sqrt{2})^m + (3-2\sqrt{2})^m - 2}{4}: \ \ m \in \mathbb{N} \right \}, then for any n \in A the sum 1+2+ \cdots + n will be a perfect square. note that A \subset \mathbb{N}. \ \Box
    Follow Math Help Forum on Facebook and Google+

  4. #3
    Member
    Joined
    Nov 2007
    Posts
    108
    Quote Originally Posted by NonCommAlg View Post
    it's quite simple if you're familiar with Pell equation (i think everybody is!) anyway, so we want to have n(n+1)=2k^2 for some integer k. equivalently (2n+1)^2 - 2(2k)^2 = 1, which is a Pell

    equation. thus if we let A= \left \{\frac{(3+2\sqrt{2})^m + (3-2\sqrt{2})^m - 2}{4}: \ \ m \in \mathbb{N} \right \}, then for any n \in A the sum 1+2+ \cdots + n will be a perfect square. note that A \subset \mathbb{N}. \ \Box
    Thank you very much for your help, NonCommAlg. I just learned Pell equation. I don't know if I follow you correctly on this n(n+1)=2k^2 \Rightarrow 2n^2+2n=2(2k^2) \Rightarrow 2n^2+2n-2(2k^2)=0 \Rightarrow 2n^2+2n+1-2(2k^2)=1
    I can't get  (2n+1)^2-2(2k^2)=1 as yours. Can you help me figure out what I did wrong here?

    Edit: I see what I did wrong, instead of (2k)^2, I put 2k^2
    Last edited by namelessguy; December 8th, 2008 at 12:13 PM.
    Follow Math Help Forum on Facebook and Google+

  5. #4
    Global Moderator ThePerfectHacker's Avatar
    Joined
    Nov 2005
    From
    New York City
    Posts
    10,603
    If t_n is a square then t_{4n(n+1)} is a square.
    Follow Math Help Forum on Facebook and Google+

  6. #5
    Member
    Joined
    Nov 2007
    Posts
    108
    Can you show me how you come up with that set A NonComAlg. I know the terms 3+2\sqrt{2} is from the least positive solution x=3,y=2
    Last edited by namelessguy; December 10th, 2008 at 09:31 AM.
    Follow Math Help Forum on Facebook and Google+

  7. #6
    Global Moderator ThePerfectHacker's Avatar
    Joined
    Nov 2005
    From
    New York City
    Posts
    10,603
    Quote Originally Posted by namelessguy View Post
    Can you show me how you come up with that set A NonComAlg. I know the terms 3+2\sqrt{2} is from the least positive solution x=3,y=2
    One way is knowning how to solve Pell's equation.
    I can show you the steps but if you never learned how to solve Pell's equation then it will be unhelpful.
    Follow Math Help Forum on Facebook and Google+

  8. #7
    Member
    Joined
    Nov 2007
    Posts
    108
    Quote Originally Posted by ThePerfectHacker View Post
    One way is knowning how to solve Pell's equation.
    I can show you the steps but if you never learned how to solve Pell's equation then it will be unhelpful.
    I know how to find the least positive solution to Pell's equation using the continued faction expansion of \sqrt{d}. Then all the solutions are (x_n,y_n) by x_n +\sqrt{d} y_n= (x_1+ \sqrt{d} y_1)^n where (x_1,y_1) is the least positive solution.
    I don't know what I need to do with the solution to come up with that set A, so if you can give some help, it would be great, TPH. Thanks a lot.
    Follow Math Help Forum on Facebook and Google+

  9. #8
    Super Member

    Joined
    May 2006
    From
    Lexington, MA (USA)
    Posts
    10,312
    Thanks
    38
    Hello, namelessguy!

    NonCommAlg solved the Pellian equation
    . . and gave us the closed form of the solutions.

    The solution is also a recurrence relation . . .


    We want to find integers a\text{ and }b so that: . \frac{a(a+1)}{2} \:=\:b^2


    By experimenting, we can find the first few values . . .

    . . \begin{array}{c|c} a & b \\ \hline<br />
0 & 0 \\ 1 & 1 \\ 8 & 6 \\ 49 & 35 \\ \vdots & \vdots \end{array}


    Then we can generalize the two sequences:

    . . a_n \;=\;6\!\cdot\!a_{n\,\text{-}\,1} - a_{n\,\text{-}\,2} + 2

    . . b_n \;=\;6\!\cdot\!b_{n\,\text{-}\,1} - b_{n\,\text{-}\,2}


    And extend the table indefinitely:

    . . \begin{array}{c|c} a & b \\ \hline<br />
\vdots & \vdots \\ 288 & 204 \\ 1681 & 1189 \\ 9800 & 6930 \\ \vdots & \vdots \end{array}


    Therefore, there is an infinite number of square triangular numbers.

    Follow Math Help Forum on Facebook and Google+


/mathhelpforum @mathhelpforum