The Four 4s Puzzle – How To Generate Any Number Using Four 4s?
Published on March 21, 2022 by Hemanth
--
There is an old saying that goes: “One who masters the four 4s shall not fear the vilest of the mathematical demons!” Actually, that is not an old saying. I just made it up now as an excuse to spend some time solving an intriguing math puzzle.
But in my defense, we are not looking at an arbitrary math puzzle here but the “four 4s puzzle”. Its rules are pretty simple. You have a row of four 4s. You are allowed to use mathematical operations to relate these 4s with each other to arrive at any non-negative integer possible. The 4s can be related to each other using any arbitrarily valid mathematical operator. That is pretty much it.
We will start with the first ten integers from zero to nine. To do this, we will be restricting ourselves to the following fundamental operations: addition (+), subtraction (-), multiplication (*), and division (/).
Following this, I will demonstrate how bigger integers need more advanced operators. Finally, I will show how you can achieve a general solution that can be applied to any positive integer.
The first eleven integers are relatively straightforward. I’ve worked out the first integer (zero) as an example below. Based on this, you may choose to work out the rest of the integers (1–9) on your own. Remember that for these integers, the four fundamental mathematical operators and parenthesis (+, -, *, /, and ‘( )’) are sufficient.
Math illustrated by the author
Furthermore, please note that the solutions for this puzzle are not unique. That means that your solution and my solution need not be the same; there are numerous ways to obtain the same results.
Spoiler alert: Beyond this point, I will be revealing the solutions to the rest of the integers from 1–10 directly. So, if you wish to move away from this essay and work out solutions on your own, now is the time to do it. You may then come back later to compare your answers.
Math illustrated by the author
The Four 4s Puzzle — Bigger Integers
Unfortunately, as soon as we expand our scope beyond the integers we have just covered, the four fundamental operators and parenthesis are no longer sufficient. To do the job, here is the list of operators most commonly used:
Math illustrated by the author
As an illustration, consider the question asked in the title image.
Which combination of four 4s leads to 99?
Math illustrated by the author
Apart from this, I came across mathematicians using a variety of other mathematical operators as well to get the job done. But why stop there? Why not look for a more general solution? That is exactly where we are headed.
The Four 4s Puzzle — General Solution
You see, the Four 4s puzzle is relatively old (dates back to the late 19th century). Back in the early 1900s, the famous physicist Paul Dirac took interest in this puzzle and found a general solution for all positive integers. Dirac managed to solve the puzzle using only logarithms and radicals (square root).
To begin understanding his genius solution, we’ll need to cover two fundamental parts first.
The first part is to merely understand how logarithms to the base 4 work. We don’t normally use logarithms to the base 4, but for our purposes here, they are essential.
Math illustrated by the author
The second part is to extend our current level of understanding to logarithms of base ½.
Math illustrated by the author
As a final touch, we express ½ as √4/4 (which is nothing but 2/4). Now, we have all the ingredients necessary to understand Dirac’s general solution, which is expressed as follows:
Math illustrated by the author
As you see, we have four 4s in this expression, and the number of square roots inside the parenthesis decides the value of n. To obtain any arbitrary integer, we just need correspondingly many square roots placed inside.
Final Thoughts
When I first came across this puzzle, it looked quite harmless to me. As I went through bigger and bigger integers, I began understanding the scale of the challenge in this puzzle.
So, it is no wonder that great mathematical minds such as Dirac took turns at this puzzle. If you figured out interesting approaches to the puzzle, do share them in the comments section. I hope that you had as much fun solving this puzzle as I did!
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-advertisement
1 year
Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
CookieLawInfoConsent
1 year
Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie.
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Cookie
Duration
Description
_gat
1 minute
This cookie is installed by Google Universal Analytics to restrain request rate and thus limit the collection of data on high traffic sites.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Cookie
Duration
Description
__gads
1 year 24 days
The __gads cookie, set by Google, is stored under DoubleClick domain and tracks the number of times users see an advert, measures the success of the campaign and calculates its revenue. This cookie can only be read from the domain they are set on and will not track any data while browsing through other sites.
_ga
2 years
The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_ga_R5WSNS3HKS
2 years
This cookie is installed by Google Analytics.
_gat_gtag_UA_131795354_1
1 minute
Set by Google to distinguish users.
_gid
1 day
Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
CONSENT
2 years
YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie
Duration
Description
IDE
1 year 24 days
Google DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile.
test_cookie
15 minutes
The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE
5 months 27 days
A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSC
session
YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
yt-remote-connected-devices
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-id
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
Comments