Contents
99 Bottles of Beer
"99 Bottles of Beer" or "100 Bottles of Pop on the Wall" is a traditional reverse counting song from the United States and Canada. It is popular to sing on road trips, as it has a very repetitive format which is easy to memorize and can take a long time when sung in full. In particular, the song is often sung by children on long school bus trips, such as class field trips, or on Scout or Girl Guide outings. 99 Bottles of Beer 's lyrics can be printed in normal programming languages or esoteric programming languages.
History
Lyrics
The song's lyrics are as follows, beginning with n=99: <poem style="margin-left: 2em;">(n) bottles of beer on the wall. (n) bottles of beer. If one of the bottles just happen to fall, (n−1) bottles of beer on the wall. The same verse is repeated, each time with one bottle fewer, until there is none left. Variations on the last verse following the last bottle going down include lines such as: <poem style="margin-left: 2em;">No more bottles of beer on the wall, no more bottles of beer. Go to the store and buy some more, 99 bottles of beer on the wall... Or: <poem style="margin-left: 2em;">No more bottles of beer on the wall, no more bottles of beer. We've taken them down and passed them around; now we're drunk and passed out! Other alternate lines read: <poem style="margin-left: 2em;">If that one bottle should happen to fall, what a waste of alcohol! Or: <poem style="margin-left: 2em;">No more bottles of beer on the wall, no more bottles of beer. There's nothing else to fall, because there's no more bottles of beer on the wall. Or the song does not stop at the last "1" or "0" bottles of beer but continues counting with −1 (Negative one) Bottles of beer on the wall Take one down, pass it around, −2 (negative 2) bottles of beer on the wall... continuing onward through the negative numbers.
Full-length recitals
Singing all verses takes an extraordinarily long time. The American comedian Andy Kaufman used this for comedic effect early in his career when he actually sang all 100 verses. Atticus, a band from Knoxville, Tennessee, recorded a thirteen and a half minute live version of the song in its entirety at the Glasgow Cathouse in Scotland. It was included in the 2001 album Figment. Rich Stewart aka Homebrew Stew listed it as the number one drinking song out of 86 in an article for Modern Drunkard Magazine the following year.
Mathematically inspired variants
Donald Byrd has collected dozens of variants inspired by mathematical concepts and written by himself and others. (A subset of his collection has been published. ) Byrd argues that the collection has pedagogic as well as amusement value. Among his variants are: Other versions in Byrd's collection involve concepts including geometric progressions, differentials, Euler's identity, complex numbers, summation notation, the Cantor set, the Fibonacci sequence, and the continuum hypothesis, among others.
References in computer science
The computer scientist Donald Knuth proved that the song has a complexity of O(\log N) in his in-joke-article "The Complexity of Songs". Numerous computer programs exist to output the lyrics to the song. This is analogous to "Hello, World!" programs, with the addition of a loop. As with "Hello, World!", this can be a practice exercise for those studying computer programming, and a demonstration of different programming paradigms dealing with looping constructs and syntactic differences between programming languages within a paradigm. The program has been written in over 1,500 different programming languages.
Example
C
Rust
Haskell
Python
This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.
Wikipedia® is a registered trademark of the
Wikimedia Foundation, Inc.
Bliptext is not
affiliated with or endorsed by Wikipedia or the
Wikimedia Foundation.