All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Endless Summer (Posted on 2003-10-20) Difficulty: 2 of 5
Suppose that the song "99 Bottles of Beer on the Wall" was sung from beginning to end.

What would be the sum of all the numbers (including repeats, of course) in the song?

Then, suppose you have some arbitrary number n bottles, which you would like to sing about. Find a formula in terms of n for the sum of all the numbers you will be singing.

See The Solution Submitted by DJ    
Rating: 4.0000 (9 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
solution | Comment 3 of 9 |
If you only mentioned the number once per 'verse' the answer would simply be the triangular number of n - given by (n^2+n)/2.
I've only heard the song in movies, but I think it goes something like,

n bottles of beer on the wall
n bottles of beer, if
1 of those bottles should happen to fall there'd be
(n-1) bottles of beer on the wall.

for a total of 3n bottles mentioned per 'verse'.
The answer is therefore 3 x the triangular number of the bottles you start with on the wall.
Triangular number when n=99
(99^2 + 99)/2 = 4950
multiplied by 3 = 14850

The general formula is therefore 3(n^2+n)/2
  Posted by Lee on 2003-10-20 12:16:04
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (8)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information