in reply to (jeffa) Re: Recursion
in thread Recursion
Are you thinking of the sum of the first N natural numbers?
I've heard the legend/story that he (Guass) came up with this when he was somewhere between 10 and 15 years old (for the record, I might have come up with this when I was 10, but cartoons were more interesting than math then).
Anyway, it's S=N*(N+1)/2
FouRPlaY
Learning Perl or Going To Die Trying
I've heard the legend/story that he (Guass) came up with this when he was somewhere between 10 and 15 years old (for the record, I might have come up with this when I was 10, but cartoons were more interesting than math then).
Anyway, it's S=N*(N+1)/2
FouRPlaY
Learning Perl or Going To Die Trying
|
---|
Replies are listed 'Best First'. | |
---|---|
Sum of numbers between 1 and N
by tedv (Pilgrim) on Nov 15, 2000 at 21:42 UTC | |
by husker (Chaplain) on Nov 15, 2000 at 22:20 UTC |
In Section
Seekers of Perl Wisdom