Thanks to Phil for the suggestion! As viral puzzles became popular, mathematicians joined the game too. Here’s a fun puzzle that has been widely shared.

Can you figure it out?

As usual, watch the video for a solution.

Bottle Burger Beer Hot Dog Viral Puzzle

Or keep reading.
.
.

"All will be well if you use your mind for your decisions, and mind only your decisions." Help me make more videos and posts! A monthly membership directly supports the channel and allows me to make more videos that inspire students and teachers around the world. You also get early access to new videos.

Support with a YouTube membership
https://www.youtube.com/channel/UCHnj59g7jezwTy5GeL8EA_g/join Support with a Patreon membership
https://www.patreon.com/mindyourdecisions

Want to support with a tip or one-time donation? Every "coffee" powers me to make more videos. As they say, a mathematician is a machine for turning caffeine into theorems!

Send a tip on Ko-Fi
https://ko-fi.com/mindyourdecisions

Send a tip on Paypal

.
.

.
.
.
.
M
I
N
D
.
Y
O
U
R
.
D
E
C
I
S
I
O
N
S
.
P
U
Z
Z
L
E
.
.
.
.
Answer To Bottle Burger Beer Hot Dog Viral Puzzle

(Pretty much all posts are transcribed quickly after I make the videos for them–please let me know if there are any typos/errors and I will correct them, thanks).

First we solve the three linear equations.

(bottle) + (bottle) + (bottle) = 30
(bottle) + (burger) + (burger) = 20
(burger) + (2 beers) + (2 beers) = 9

(bottle) + (bottle) + (bottle) = 30
3(bottle) = 30
(bottle) = 10

(bottle) + (burger) + (burger) = 20
10 + 2(burger) = 20
2(burger) = 10
(burger) = 5

(burger) + (2 beers) + (2 beers) = 9
5 + 2(2 beers) = 9
2(2 beers) = 4
(2 beers) = 2

The lower limit of integration is then

(burger) + (burger) – (bottle)
= 5 + 5 – 10
= 0

The numerator has the constant (bottle) = 10 and denominator is (2 beers)(hot dog) = 2(hot dog).

Hot dog is a placeholder variable so it can be replaced with x. This means the integral is:

The hard part is the integral of (sin x)/x from 0 to infinity. This is known as the Dirichlet integral, and there are many possible ways to evaluate it. I will present one method. First notice the following:

Taking the integral of both sides with respect to x from 0 to infinity gives the Dirichlet integral.

This double integral is not easy to evaluate. A standard trick is to change the order of integration. But this particular function over the specified region does not satisfy the conditions for Fubini’s Theorem. So one must carefully justify changing the order of operations. This is done in a paper by Paul Loya, “Dirichlet and Fresnel integrals via iterated integration” (JSTOR). Here’s the theorem:

And here’s the verification the integral satisfies the conditions of the theorem:

Loya, Paul. “Dirichlet and Fresnel integrals via iterated integration.” Mathematics Magazine 78.1 (2005): 63-67.

So now we proceed to change the order of integration.

We now need 5 times this value, which works out to 5π/2 = 2.5π. You might say that is “two and a half pies”! And that’s the answer!

References

Puzzle on Facebook
https://www.facebook.com/Mathematical.Mathematics.Memes/photos/a.114727355535937.1073741828.114667355541937/376605399348130/?type=3&theater

Math StackExchange on (sin x)/x integral
https://math.stackexchange.com/questions/5248/evaluating-the-integral-int-0-infty-frac-sin-x-x-mathrm-dx-frac-pi

Loya, Paul. “Dirichlet and Fresnel integrals via iterated integration.” Mathematics Magazine 78.1 (2005): 63-67.
https://www.jstor.org/stable/3219276
http://people.math.binghamton.edu/loya/papers/LoyaMathMag.pdf

Dirichlet integral
https://en.wikipedia.org/wiki/Dirichlet_integral

PRESH TALWALKAR

I run the MindYourDecisions channel on YouTube, which has over 1 million subscribers and 200 million views. I am also the author of The Joy of Game Theory: An Introduction to Strategic Thinking, and several other books which are available on Amazon.

(As you might expect, the links for my books go to their listings on Amazon. As an Amazon Associate I earn from qualifying purchases. This does not affect the price you pay.)

By way of history, I started the Mind Your Decisions blog back in 2007 to share a bit of math, personal finance, personal thoughts, and game theory. It's been quite a journey! I thank everyone that has shared my work, and I am very grateful for coverage in the press, including the Shorty Awards, The Telegraph, Freakonomics, and many other popular outlets.

I studied Economics and Mathematics at Stanford University.

People often ask how I make the videos. Like many YouTubers I use popular software to prepare my videos. You can search for animation software tutorials on YouTube to learn how to make videos. Be prepared--animation is time consuming and software can be expensive!

Feel free to send me an email [email protected]. I get so many emails that I may not reply, but I save all suggestions for puzzles/video topics.

MY BOOKS

If you purchase through these links, I may be compensated for purchases made on Amazon. As an Amazon Associate I earn from qualifying purchases. This does not affect the price you pay.

Book ratings are from January 2026.

(US and worldwide links)
https://mindyourdecisions.com/blog/my-books

Mind Your Decisions is a compilation of 5 books:

(1) The Joy of Game Theory: An Introduction to Strategic Thinking
(2) 40 Paradoxes in Logic, Probability, and Game Theory
(3) The Irrationality Illusion: How To Make Smart Decisions And Overcome Bias
(4) The Best Mental Math Tricks
(5) Multiply Numbers By Drawing Lines

The Joy of Game Theory shows how you can use math to out-think your competition. (rated 4.2/5 stars on 587 reviews)

40 Paradoxes in Logic, Probability, and Game Theory contains thought-provoking and counter-intuitive results. (rated 4.3/5 stars on 83 reviews)

The Irrationality Illusion: How To Make Smart Decisions And Overcome Bias is a handbook that explains the many ways we are biased about decision-making and offers techniques to make smart decisions. (rated 4.3/5 stars on 56 reviews)

The Best Mental Math Tricks teaches how you can look like a math genius by solving problems in your head (rated 4.4/5 stars on 155 reviews)

Multiply Numbers By Drawing Lines This book is a reference guide for my video that has over 1 million views on a geometric method to multiply numbers. (rated 4.5/5 stars on 57 reviews)

Mind Your Puzzles is a collection of the three "Math Puzzles" books, volumes 1, 2, and 3. The puzzles topics include the mathematical subjects including geometry, probability, logic, and game theory.

Math Puzzles Volume 1 features classic brain teasers and riddles with complete solutions for problems in counting, geometry, probability, and game theory. Volume 1 is rated 4.4/5 stars on 138 reviews.

Math Puzzles Volume 2 is a sequel book with more great problems. (rated 4.2/5 stars on 45 reviews)

Math Puzzles Volume 3 is the third in the series. (rated 4.3/5 stars on 38 reviews)

KINDLE UNLIMITED

Teachers and students around the world often email me about the books. Since education can have such a huge impact, I try to make the ebooks available as widely as possible at as low a price as possible.

Currently you can read most of my ebooks through Amazon's "Kindle Unlimited" program. Included in the subscription you will get access to millions of ebooks. You don't need a Kindle device: you can install the Kindle app on any smartphone/tablet/computer/etc. I have compiled links to programs in some countries below. Please check your local Amazon website for availability and program terms.

US, list of my books (US)
UK, list of my books (UK)
Canada, book results (CA)
Germany, list of my books (DE)
France, list of my books (FR)
India, list of my books (IN)
Australia, book results (AU)
Italy, list of my books (IT)
Spain, list of my books (ES)
Japan, list of my books (JP)
Brazil, book results (BR)
Mexico, book results (MX)

MERCHANDISE

Grab a mug, tshirt, and more at the official site for merchandise: Mind Your Decisions at Teespring.