Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Adding a sequence of numbers

  • 23-08-2007 10:44pm
    #1
    Registered Users, Registered Users 2 Posts: 6,414 ✭✭✭


    ok, I remember being stupidly bored one day and started adding numbers together in my head, i must have been trying to sleep or something, but i noticed a quick way to get the sum of all numbers from n to 0,

    i.e. 10 + 9 + 8 ... + 1 = 55

    simply ((10+1) / 2) * 10 or ((n + 1) / 2) * n


    as far as i can tell, this holds true for all values for n?
    i've never actually seen this anywhere, but just wondering is there a name for this method and am i right in saying it works for all values of n?


Comments

  • Moderators, Science, Health & Environment Moderators Posts: 1,852 Mod ✭✭✭✭Michael Collins


    Yep, you are indeed correct that it works for all non-negative n. This is a pretty standard series, the sum of the natural numbers in sequence. What you have is the "Sum to n-terms" of that series.

    The proof of this is on the Leaving Cert course and uses the method of induction, which is farily straightfoward.


  • Closed Accounts Posts: 6,081 ✭✭✭LeixlipRed


    This problem was famously given to the mathematician Gauss when he was a child in Germany. His teacher had to leave the class and before he did he set the class the problem of adding the numbers 1 to 100 thinking it would keep them busy for atleast a few minutes. Before he'd left the room Gauss had the answer using the exact same method as above. Pity you're only a couple of hundred years too late :D


  • Registered Users, Registered Users 2 Posts: 6,414 ✭✭✭kdouglas


    well i knew someone must have thought of it at some stage :D

    Cheers lads


  • Closed Accounts Posts: 6,081 ✭✭✭LeixlipRed


    Well if you'd never read anything about it and haven't studied much maths then I suppose it's mostly an original thought. Now you just need to build the time machine :D


  • Registered Users, Registered Users 2 Posts: 6,414 ✭✭✭kdouglas


    well, i only really studied leaving cert maths and a bit in college (computer science), but i knew it wasnt an original idea, someone somewhere must have thought of it at some stage, just wanted to know if anyone was famous for having thought of it or if it was just a well known thing


  • Advertisement
  • Closed Accounts Posts: 6,081 ✭✭✭LeixlipRed


    Well Gauss is the one the legend is attached too. Whether it's a true story or not is debatable. If you seen some linear algebra in college you might have come across Gaussian elimination which was named after the same guy


  • Closed Accounts Posts: 667 ✭✭✭aequinoctium


    as well as Gaussian surfaces....


  • Registered Users, Registered Users 2 Posts: 2,149 ✭✭✭ZorbaTehZ


    LeixlipRed wrote:
    This problem was famously given to the mathematician Gauss when he was a child in Germany. His teacher had to leave the class and before he did he set the class the problem of adding the numbers 1 to 100 thinking it would keep them busy for atleast a few minutes. Before he'd left the room Gauss had the answer using the exact same method as above. Pity you're only a couple of hundred years too late :D

    The way Gauss looked at it though, was that he noticed 1+99, 2+98, 3+97 etc all summed to 100, and then you need only include the 50 and the other 100. He didn't use that formula to find the answer per se.


  • Closed Accounts Posts: 6,081 ✭✭✭LeixlipRed


    Of course he didn't use that formula but the thinking behind it was the same. And its actually 1 + 100 = 101, 2+99 = 101, .....

    And 50 of those gives you 5050


  • Registered Users, Registered Users 2 Posts: 2,149 ✭✭✭ZorbaTehZ


    No one mentioned it in the thread and since thats the cornerstone of the story itself, and was what displayed his genius at such a young age, the fact that he noticed how it could be simplified, warrants inclusion no?


  • Advertisement
  • Closed Accounts Posts: 1,597 ✭✭✭dan719


    But was it not also true that Gauss looked at his a list of numbers belonging to his father and noticed an adding mistake while he was only a toddler?!!


  • Closed Accounts Posts: 6,081 ✭✭✭LeixlipRed


    dan719 wrote:
    But was it not also true that Gauss looked at his a list of numbers belonging to his father and noticed an adding mistake while he was only a toddler?!!

    Gauss lived in the late 1700/early 1800s so any "story" about him is unlikely to be 100% accurate. More likely they were anecdotes created long after he lived to add to the legend. Of course they could be true but I've never read anything which indicated they're firm historic fact. Gauss was a genius alright so worrying about the little details is a bit pointless


  • Closed Accounts Posts: 1,475 ✭✭✭Son Goku


    How about the fact that he discovered quaternions half a century before Hamilton. Or that he discovered Riemannian geometry before Riemann. Giving probability an analytic basis and furthering the understanding of calculus over the complex numbers.

    Plus long before Einstein he had his suspicion that space was curved.


  • Closed Accounts Posts: 6,081 ✭✭✭LeixlipRed


    Son Goku wrote:
    How about the fact that he discovered quaternions half a century before Hamilton.

    But Hamilton won the race to scribble about quaternians on Broombridge :D


  • Closed Accounts Posts: 667 ✭✭✭aequinoctium


    But Hamilton won the race to scribble about quaternians on Broombridge

    nice


  • Registered Users, Registered Users 2 Posts: 5,141 ✭✭✭Yakuza


    Quick Proof:
    Σ(n)= 1 + 2 + 3 +....+(n-2) + (n-1) + n
    Write it the other way
    Σ(n) = n + (n-1) + (n-2) + ....+3 + 2 + 1

    Add the two expressions:

    2 * Σ(n) = (n+1) + (n+1) + (n+1)+...+(n+1) + (n+1) + (n+1) = n * (n+1)

    So:
    Σ(n) = n(n+1) / 2

    works for all integers N


  • Registered Users, Registered Users 2 Posts: 39,902 ✭✭✭✭Mellor


    I highly doubt Guass was the first to simplify it. I've often, as had most people who are good at maths, added the first and last (or second last number) in a series when added to make it a simplier sum, i'm sure it was done before Guass, it just never warrented fame.


Advertisement