
(Long-time followers will remember that I previously covered this topic. I have prepared a new video with a slightly different presentation and a different historical perspective. Thanks to Elto for sending me a similar problem that was posted in a restaurant in Canada.)
In 2018, students in China at the Nanjing University of Aeronautics and Astronautics, saw an unusual sign in a dining hall. They had to solve the following integral in order to connect to the WiFi:

(Long-time followers will remember that I previously covered this topic. I have prepared a new video with a slightly different presentation and a different historical perspective. Thanks to Elto for sending me a similar problem that was posted in a restaurant in Canada.)
In 2018, students in China at the Nanjing University of Aeronautics and Astronautics, saw an unusual sign in a dining hall. They had to solve the following integral in order to connect to the WiFi:

You can’t use the internet (as you are trying to figure out the WiFi password), and I think the spirit of the problem is to solve only using pencil and paper without a calculator.
The first 8 digits of the answer are the WiFi password. Can you figure it out? Watch the video for a solution.
Solve a Math Problem For WiFi!
0:00 problem 1:22 solution 6:36 history
Or keep reading.
Fun fact!
Around 480, Zu Chongzhi calculated pi was approximately 355/113, which is accurate to 6 decimal places. And he also calculate pi accurately to 7 decimal places using an area method of inscribed and circumscribed polygons (the method was developed by Liu Hui, and is in contrast to Archimedes who used the perimeter of the polygons). Zu’s calculation was the world’s most accurate value for pi for over 1000 years. . .
“All will be well if you use your mind for your decisions, and mind only your decisions.” It costs thousands of dollars to run a website and your support matters. If you like the posts and videos, please consider a monthly pledge on Patreon. You may also consider a one-time donation to support my work. . .
. . . . 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 Students In China: Solve This Integral For The WiFi Password
(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).
The problem is readily solvable with a few tricks. First, distribute the terms in parentheses, and then focus on the integral of x3 cos (x/2) √(4 – x2). We can show this entire integral is equal to 0.

This is because
x3 is an odd function cos (x/2) is an even function √(4 – x2) is an even function
The product of an odd function and an even function is an odd function, so the product of these three functions is an odd function. Furthermore, the integral of an odd function over a symmetric interval [-a, a] is equal to 0. Hence, this integral is equal to 0.
Now we focus on the integral of (1/2) √(4 – x2) from -2 to 2.

The integral of √(4 – x2) from -2 to 2 is the area of a semi-circle, and we want half of that. So the integral evaluates to:
(1/2)(1/2)π(2)2 = π
So the entire integral evaluates to π. But now how can we remember the first 8 digits of π?
One trick is to remember a sentence where the number of letters in each word gives the digits of pi. One such sentence is:
How I wish I could calculate pi easily today
The number of letters in each word is
3 Can 1 I 4 have 1 a 5 large 9 container 2 of 6 coffee
The password is the first 8 digits, which is 31415926.
It’s a pretty neat problem to encourage students to practice math even while they are in the dining hall!
Sources
Beijing News (Chinese) http://tech.ifeng.com/a/20180907/45156013_0.shtml
CNET https://www.cnet.com/news/wi-fi-access-only-granted-to-students-in-china-after-they-solve-a-puzzle/
Chronology of computation of π https://en.wikipedia.org/wiki/Chronology_of_computation_of_%CF%80 https://en.wikipedia.org/wiki/Zu_Chongzhi
Pi wordplay https://mathworld.wolfram.com/PiWordplay.html
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 2025.
(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 564 reviews)
40 Paradoxes in Logic, Probability, and Game Theory contains thought-provoking and counter-intuitive results. (rated 4.2/5 stars on 81 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.2/5 stars on 55 reviews)
The Best Mental Math Tricks teaches how you can look like a math genius by solving problems in your head (rated 4.3/5 stars on 148 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.