Skip to content
Home » [Update] Techniques for Adding the Numbers 1 to 100 – BetterExplained | 1 2 3 4 5 6 – NATAVIGUIDES

[Update] Techniques for Adding the Numbers 1 to 100 – BetterExplained | 1 2 3 4 5 6 – NATAVIGUIDES

1 2 3 4 5 6: คุณกำลังดูกระทู้

There’s a popular story that Gauss, mathematician extraordinaire, had a lazy teacher. The so-called educator wanted to keep the kids busy so he could take a nap; he asked the class to add the numbers 1 to 100.

Gauss approached with his answer: 5050. So soon? The teacher suspected a cheat, but no. Manual addition was for suckers, and Gauss found a formula to sidestep the problem:

\displaystyle{\text{Sum from 1 to n} = \frac{n(n+1)}{2}}

\displaystyle{\text{Sum from 1 to 100} = \frac{100(100+1)}{2} = (50)(101) = 5050}

Let’s share a few explanations of this result and really understand it intuitively. For these examples we’ll add 1 to 10, and then see how it applies for 1 to 100 (or 1 to any number).

Technique 1: Pair Numbers

Pairing numbers is a common approach to this problem. Instead of writing all the numbers in a single column, let’s wrap the numbers around, like this:

1  2  3  4  5
10 9  8  7  6

An interesting pattern emerges: the sum of each column is 11. As the top row increases, the bottom row decreases, so the sum stays the same.

Because 1 is paired with 10 (our n), we can say that each column has (n+1). And how many pairs do we have? Well, we have 2 equal rows, we must have n/2 pairs.

\displaystyle{\text{Number of pairs * Sum of each pair} = (\frac{n}{2})(n+1) = \frac{n(n+1)}{2}}

which is the formula above.

Wait — what about an odd number of items?

Ah, I’m glad you brought it up. What if we are adding up the numbers 1 to 9? We don’t have an even number of items to pair up. Many explanations will just give the explanation above and leave it at that. I won’t.

Let’s add the numbers 1 to 9, but instead of starting from 1, let’s count from 0 instead:

0  1  2  3  4
9  8  7  6  5

By counting from 0, we get an “extra item” (10 in total) so we can have an even number of rows. However, our formula will look a bit different.

Notice that each column has a sum of n (not n+1, like before), since 0 and 9 are grouped. And instead of having exactly n items in 2 rows (for n/2 pairs total), we have n + 1 items in 2 rows (for (n + 1)/2 pairs total). If you plug these numbers in you get:

\displaystyle{\text{Number of pairs * Sum of each pair} = (\frac{n + 1}{2})(n) = \frac{n(n+1)}{2}}

which is the same formula as before. It always bugged me that the same formula worked for both odd and even numbers – won’t you get a fraction? Yep, you get the same formula, but for different reasons.

Technique 2: Use Two Rows

The above method works, but you handle odd and even numbers differently. Isn’t there a better way? Yes.

Instead of looping the numbers around, let’s write them in two rows:

1  2  3  4  5  6  7  8  9  10
10 9  8  7  6  5  4  3  2  1

Notice that we have 10 pairs, and each pair adds up to 10+1.

The total of all the numbers above is

\displaystyle{\text{Total = pairs * size of each pair} = n(n + 1)}

But we only want the sum of one row, not both. So we divide the formula above by 2 and get:

\displaystyle{\frac{n(n + 1)}{2}}

Now this is cool (as cool as rows of numbers can be). It works for an odd or even number of items the same!

Technique 3: Make a Rectangle

I recently stumbled upon another explanation, a fresh approach to the old pairing explanation. Different explanations work better for different people, and I tend to like this one better.

Instead of writing out numbers, pretend we have beans. We want to add 1 bean to 2 beans to 3 beans… all the way up to 5 beans.

x
x x
x x x
x x x x
x x x x x

Sure, we could go to 10 or 100 beans, but with 5 you get the idea. How do we count the number of beans in our pyramid?

Well, the sum is clearly 1 + 2 + 3 + 4 + 5. But let’s look at it a different way. Let’s say we mirror our pyramid (I’ll use “o” for the mirrored beans), and then topple it over:

x                 o      x o o o o o
x x             o o      x x o o o o
x x x         o o o  =>  x x x o o o
x x x x     o o o o      x x x x o o
x x x x x o o o o o      x x x x x o

Cool, huh? In case you’re wondering whether it “really” lines up, it does. Take a look at the bottom row of the regular pyramid, with 5′x (and 1 o). The next row of the pyramid has 1 less x (4 total) and 1 more o (2 total) to fill the gap. Just like the pairing, one side is increasing, and the other is decreasing.

Now for the explanation: How many beans do we have total? Well, that’s just the area of the rectangle.

We have n rows (we didn’t change the number of rows in the pyramid), and our collection is (n + 1) units wide, since 1 “o” is paired up with all the “x”s.

\displaystyle{\text{Area} = \text{height} \cdot \text{width} = n(n+1)}

Notice that this time, we don’t care about n being odd or even – the total area formula works out just fine. If n is odd, we’ll have an even number of items (n+1) in each row.

But of course, we don’t want the total area (the number of x’s and o’s), we just want the number of x’s. Since we doubled the x’s to get the o’s, the x’s by themselves are just half of the total area:

\displaystyle{\text{Number of x’s} = \frac{Area}{2} = \frac{n(n + 1)}{2}}

And we’re back to our original formula. Again, the number of x’s in the pyramid = 1 + 2 + 3 + 4 + 5, or the sum from 1 to n.

Technique 4: Average it out

We all know that

average = sum / number of items

which we can rewrite to

sum = average * number of items

So let’s figure out the sum. If we have 100 numbers (1…100), then we clearly have 100 items. That was easy.

To get the average, notice that the numbers are all equally distributed. For every big number, there’s a small number on the other end. Let’s look at a small set:

1 2 3

The average is 2. 2 is already in the middle, and 1 and 3 “cancel out” so their average is 2.

For an even number of items

1 2 3 4

the average is between 2 and 3 – it’s 2.5. Even though we have a fractional average, this is ok — since we have an even number of items, when we multiply the average by the count that ugly fraction will disappear.

Notice in both cases, 1 is on one side of the average and N is equally far away on the other. So, we can say the average of the entire set is actually just the average of 1 and n: (1 + n)/2.

Putting this into our formula

\displaystyle{\text{sum = average * count } = \frac{(1 + n)}{2} \cdot n = \frac{n(n + 1)}{2}}

And voila! We have a fourth way of thinking about our formula.

So why is this useful?

Three reasons:

1) Adding up numbers quickly can be useful for estimation. Notice that the formula expands to this:

\displaystyle{\frac{n(n+1)}{2} = \frac{n^2}{2} + \frac{n}{2} }

Let’s say you want to add the numbers from 1 to 1000: suppose you get 1 additional visitor to your site each day – how many total visitors will you have after 1000 days? Since thousand squared = 1 million, we get million / 2 + 1000/2 = 500,500.

2) This concept of adding numbers 1 to N shows up in other places, like figuring out the probability for the birthday paradox. Having a firm grasp of this formula will help your understanding in many areas.

3) Most importantly, this example shows there are many ways to understand a formula. Maybe you like the pairing method, maybe you prefer the rectangle technique, or maybe there’s another explanation that works for you. Don’t give up when you don’t understand — try to find another explanation that works. Happy math.

By the way, there are more details about the history of this story and the technique Gauss may have used.

Variations

Instead of 1 to n, how about 5 to n?

Start with the regular formula (1 + 2 + 3 + … + n = n * (n + 1) / 2) and subtract off the part you don’t want (1 + 2 + 3 + 4 = 4 * (4 + 1) / 2 = 10).

Sum for 5 + 6 + 7 + 8 + … n = [n * (n + 1) / 2] – 10

And for any starting number a:

Sum from a to n = [n * (n + 1) / 2] – [(a - 1) * a / 2]

We want to get rid of every number from 1 up to a – 1.

How about even numbers, like 2 + 4 + 6 + 8 + … + n?

Just double the regular formula. To add evens from 2 to 50, find 1 + 2 + 3 + 4 … + 25 and double it:

Sum of 2 + 4 + 6 + … + n = 2 * (1 + 2 + 3 + … + n/2) = 2 * n/2 * (n/2 + 1) / 2 = n/2 * (n/2 + 1)

So, to get the evens from 2 to 50 you’d do 25 * (25 + 1) = 650

How about odd numbers, like 1 + 3 + 5 + 7 + … + n?

That’s the same as the even formula, except each number is 1 less than its counterpart (we have 1 instead of 2, 3 instead of 4, and so on). We get the next biggest even number (n + 1) and take off the extra (n + 1)/2 “-1″ items:

Sum of 1 + 3 + 5 + 7 +  … + n = [(n + 1)/2 * ((n + 1)/2 + 1)] – [(n + 1) / 2]

To add 1 + 3 + 5 + … 13, get the next biggest even (n + 1 = 14) and do

[14/2 * (14/2 + 1)] – 7 = 7 * 8 – 7 = 56 – 7 = 49

Combinations: evens and offset

Let’s say you want the evens from 50 + 52 + 54 + 56 + … 100. Find all the evens

2 + 4 + 6 + … + 100 = 50 * 51

and subtract off the ones you don’t want

2 + 4 + 6 + … 48 = 24 * 25

So, the sum from 50 + 52 + … 100 = (50 * 51) – (24 * 25) = 1950

Phew! Hope this helps.

Ruby nerds: you can check this using

(50..100).select {|x| x % 2 == 0 }.inject(:+)
1950

Javascript geeks, do this:

[...Array(51).keys()].map(x => x + 50).filter(x => x % 2 == 0).reduce((x, y) => x + y)
1950

// Note: There are 51 numbers from 50-100, inclusive. Fencepost!

Other Posts In This Series

[NEW] Lottery Numbers 1 2 3 4 5 6 – Have They Ever Been Drawn? | 1 2 3 4 5 6 – NATAVIGUIDES

If you’re like most people, you think that the lottery numbers 1-2-3-4-5-6 have never been drawn. Not only that, they will never be drawn in the future. That’s because it’s impossible. Or is it?

Why has 1-2-3-4-5-6 never been drawn by any lottery? The simple answer is that the odds are astronomical. The odds of any sequence of numbers being drawn in a 6/49 lottery are approximately 1-in-14-million. So, those numbers have the exact same odds as any other sequence of numbers like, say, 7-12-21-30-41-49. The problem is that the first set of numbers are very memorable and the second set are not because they look like the usual sequence of numbers.

What happens is that the human mind tends to see patterns where there are none. Because the numbers 7-12-21-30-41-49 look like numbers that are drawn, they look . Yet, those numbers, probably, have never been drawn and, probably, never will, just like 1-2-3-4-5-6.

As an experiment, I’ve checked those exact same numbers against previous 6/49 results in Canada, a lottery that’s been drawing twice per week for over 25 years – That’s more than 2600 draws. You can do the same here. With both sets of numbers, the most matched was four. And, guess what? It happened with both sets of numbers the exact same number of times twice. So, if you played both sets of numbers every week for 25 years, you’d win approximately the same amount. Now, on one of those draws, the numbers drawn were 1-2-3-4-13-48; that happened on July 8, 1992. That’s pretty close to actually hitting it, don’t you think?

The point is that any set of numbers in the lottery, no matter what, have the exact same chances of winning the jackpot, no matter what the perceived patterns in your mind tell you.


Độc Tấu 6 Câu Vọng Cổ 1,2,3,4,5,6 Dây Kép Ngón Đàn Mùi Của Chàng Trai 24 Tuổi ✔


✔️ Subscribe/Đăng ký: https://bit.ly/3uM5WAf
Độc Tấu 6 Câu Vọng Cổ 1,2,3,4,5,6 Dây Kép Ngón Đàn Mùi Của Chàng Trai 24 Tuổi Nhạc sĩ Thanh Hùng Khiếm Thị

✔️ Liên Khúc mới nhất: https://bitly.com.vn/lryysg
✔️ Hát về Mẹ: https://bitly.com.vn/c6o6vq
✔️ Hát về Cha: https://bitly.com.vn/hk5eqs
✔️ Nhạc Lính: https://bitly.com.vn/fy8t5t

✔️ Liên hệ hợp tác hoặc khiếu nại về bản quyền
✔️Email: [email protected]
✔️ Facebook: https://bit.ly/303u43p
✔️Zalo \u0026 Phone: 0944533507 ( Hoàng Linh )
✔️ Nhận Thu âm Hòa âm Làm Beat Quay Mv: 0944533407 (Hoàng Linh)

✔️ Bản quyền thuộc về Dương Hoàng Linh (Hoàng Linh Tinh Vlog)
không reup, sao chép dưới mọi hình thức !
© Copyright by Hoàng Linh Tinh Vlog. Please do not reup without permission.
HoangLinhTinhVlog ThanhHungKhiemThi GhitarDocTau NsThanhTuDocTau DocTauVongCo NsThanhHung

นอกจากการดูบทความนี้แล้ว คุณยังสามารถดูข้อมูลที่เป็นประโยชน์อื่นๆ อีกมากมายที่เราให้ไว้ที่นี่: ดูเพิ่มเติม

Độc Tấu 6 Câu Vọng Cổ 1,2,3,4,5,6 Dây Kép Ngón Đàn Mùi Của Chàng Trai 24 Tuổi ✔

Hoàng Phúc độc tấu vọng cổ 1,2,3,4,5,6 dây kép


Hoàng Phúc độc tấu vọng cổ 1,2,3,4,5,6 dây kép

Vọng Cổ | 1,2,3,4,5,6 Dây Kép | Hoàng Thanh Độc Tấu


Đỗ Hoàng Thanh Official
Kênh Giải Trí mang đến cho quý khán giả những bài
Độc Tấu \u0026 Hòa Tấu Những bài Tân Cổ Cải Lương
Những bài Hòa Tấu Bolero sâu lắng và cũng là nơi
Giao Lưu Chia Sẻ Bộ Môn Nghệ Thuật
Truyền Thống Cải Lương Việt Nam của chúng ta !

Các bạn đừng quên Đăng Ký \u0026 Bấm Chuông theo dõi kênh
để được Thông Báo những Video tiếp theo của kênh nhé ”
☞ Liên Hệ Công Việc Hoặc về Bản Quyền ©
Gmail: [email protected]
Facebook: https://www.facebook.com/Thanhbinhstudio/
Fanpage: https://www.facebook.com/ProducerMusicTB
Hotline: 0963265485 Thanh Bình

© Bản quyền thuộc Đỗ Hoàng Thanh Official
© Copyright by Đỗ Hoàng Thanh Official ☞ Do not Reup
” Chúc Các Bạn Có Những Giây Phút Thư Giản Thật Vui Vẻ Nhé ”
doctauvongco hoangthanh vanhoang

Vọng Cổ | 1,2,3,4,5,6 Dây Kép | Hoàng Thanh Độc Tấu

Wrong Wooden Slots with Crying Numbers 1 to 10 – Coloring for Kids \u0026 Toddlers


Heroes are sad. Help the heroes pick the right slots and make a coloring, so that they will become happy. We painted Numbers 110.
New videos here: https://www.youtube.com/channel/UCSVnWGLirm2gOLys2jYKayw
Thanks user Jojikiba for sounds effects.
Also sound effects obtained from https://www.zapsplat.com
VideoEdits DIY and JAYS GREEN SCREEN AND SOUND EFFECTS Green screen.
The Finger Family Song obtained from https://audiojungle.net/item/thefingerfamily/13798067
Author: Stockwaves

Wrong Wooden Slots with Crying Numbers 1 to 10 - Coloring for Kids \u0026 Toddlers

Seven Steps | + More Kids Songs | Super Simple Songs


More great Super Simple videos in the Super Simple App for iOS ► http://apple.co/2nW5hPd
Sing along with one of our favorite Super Simple kids songs, Seven Steps! It’s a great little counting song and lots of fun to march around the room to. This compilation of kids songs and nursery rhymes also includes If You’re Happy, One Little Finger, Walking Walking, and many more!
Listen to Super Simple Songs on Spotify: https://spoti.fi/2ofnaZg
Listen to Super Simple Songs on Apple Music: https://apple.co/2pBcg0j
Or, just ask your smart speaker to play Super Simple Songs!
PARENTS AND TEACHERS: Thank you so much for watching Super Simple Songs with your families and/or students. If your young ones are watching without supervision, we recommend some of the following viewing options:
► SUPER SIMPLE APP http://bit.ly/SuperSimpleApp
Be the first to watch new Super Simple videos in the Super Simple App! Adfree and designed for young learners.
► DOWNLOAD http://bit.ly/SuperSimpleShop
Videos from all Super Simple channels are available for purchase at the Super Simple online shop. You can also find some DVDs there.
► YOUTUBE KIDS http://bit.ly/YouTubeKids
Designed to make it safer and simpler for young ones to watch online video, YouTube Kids includes a suite of parental controls so you can tailor the experience to suit your family’s needs.
► AMAZON VIDEO
Are you an Amazon Prime member? Watch Super Simple videos adfree on Amazon Prime Video. Just search for “Super Simple.”
► KHAN ACADEMY KIDS http://bit.ly/KhanKidsApp
Super Simple has partnered with Khan Academy on their latest app designed for preschoolers. You’ll find Super Simple Songs worked into the curriculum throughout the app.
► PLAYKIDS http://bit.ly/PlayKids
Do you have the PlayKids app? You can find many of our Super Simple Songs and programs in the app!
FREE SUPER SIMPLE TEACHING RESOURCES: http://bit.ly/SSFreeResources
SOCIAL MEDIA:
Super Simple Newsletter Sign Up: http://bit.ly/SuperSimpleSignUp
Facebook: http://bit.ly/SuperSimpleFacebook
Instagram: http://bit.ly/SuperSimpleInsta
Twitter: http://bit.ly/SuperSimpleTwitter
Pinterest: http://bit.ly/SuperSimplePinterest

Super Simple Songs® and Super Simple Learning® are registered trademarks of Skyship Entertainment Company.

Seven Steps | + More Kids Songs | Super Simple Songs

นอกจากการดูบทความนี้แล้ว คุณยังสามารถดูข้อมูลที่เป็นประโยชน์อื่นๆ อีกมากมายที่เราให้ไว้ที่นี่: ดูวิธีอื่นๆLEARN FOREIGN LANGUAGE

ขอบคุณที่รับชมกระทู้ครับ 1 2 3 4 5 6

Leave a Reply

Your email address will not be published. Required fields are marked *