Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Triangle Numbers

by Jobby (Monk)
on Jul 26, 2002 at 01:36 UTC ( #185395=note: print w/ replies, xml ) Need Help??


in reply to Triangle Numbers

Incidentally, the formula for the nth triangular number is actually 1/2*n*(n+1) rather than the 5*n*(n+1) given above.

Now we *can* prove that the sum of two consecutive triangular numbers is a square number:

1/2*n*(n+1) + 1/2*(n+1)*(n+2)
=1/2*(n+1)*(2n+2)
=(n+1)^2

Thought I was going nuts for a second there :)


Comment on Re: Triangle Numbers
Re: Re: Triangle Numbers
by Anonymous Monk on Jul 26, 2002 at 01:40 UTC
    You missed the decimal point in front of the 5.
      which one is right

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://185395]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-07-03 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls