Blog
The Math Problem Sherlock Holmes Couldn’t Solve, But You Can – Mind Your Decisions
The new series Young Sherlock on Amazon Prime Video features an interesting math problem that baffles our hero. Solve for x in the equation:
x5 + x4 + x3 + x2 + x + 1 = 0
I share 2 different methods to solve this problem in a new video.
As usual, watch the video for a solution.
The Math Problem Young Sherlock Holmes Couldn’t Solve, But You Can
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
Support with a Patreon membership
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 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 The Math Problem Sherlock Holmes Couldn’t Solve, But You Can
(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).
In the episode Sherlock is confused by the problem. However, the same blackboard contains a derivation of the solution.
Method 1: polynomial division
Let f(x) = x5 + x4 + x3 + x2 + x + 1
By the Rational Root Theorem, the only candidates for rational roots are ±1/1 = ±1. Testing values we find f(1) = 6 and f(-1) = 0. Thus x = -1 is a root, and x + 1 is a factor of f.
Let’s divide f by x + 1.


Thus we have:
f(x) = (x + 1)(x4 + x2 + 1)
We can further factor the quartic by adding and subtracting x2.
x4 + x2 + 1
= x4 + x2 + x2 – x2 + 1
= x4 + 2x2 + 1 – x2
= (x2 + 1)2 – x2
= (x2 + 1 + x2)(x2 + 1 – x2)
Thus we have:
f(x) = (x + 1)(x2 + 1 + x2)(x2 + 1 – x2)
The roots of this equation correspond to the zeroes of the factored equations. The linear factor gives the root of x = -1, and the quadratic equations are easily solvable by the quadratic equation. Thus we get the 5 roots:
x = 1
x = -1/2 ± i√3/2
x = 1/2 ± i√3/2
Method 2: roots of unity
There is a well-known formula for n an integer greater than 2:
xn – 1 = (x – 1)(xn-1 + xn-2 + … + 1)
This is easily verifiable by expanding and comparing coefficients. In our problem we have:
x6 – 1 = (x – 1)(x5 + x4 + … + 1)
The roots of the equation correspond to the roots of the factors. The linear factor has a root of x = 1, which we already verified is not a factor of the 5th degree equation. So the 5 roots of this equation are the 6 roots of the equation x6 – 1 excluding x = 1.
x6 – 1 = 0
x6 = 1
We want to find the 6 roots of 1 (also called unity). This is easily done by putting 1 in the complex plane in polar form as e2πk for integers k.
1 = e2πk
11/6 = [e2πk]1/6
11/6 = e2πk/6
We will get 6 distinct values from k = 0, 1, 2, …, 5, giving:
e0 = 1
e2π/6 = 1/2 + i√3/2
e4π/6 = -1/2 + i√3/2
e6π/6 = -1
e8π/6 = -1/2 – i√3/2
e10π/6 = 1/2 – i√3/2
We know x = 1 is not a root of x5 + x4 + x3 + x2 + x + 1, so we have its 5 roots are:
e2π/6 = 1/2 + i√3/2
e4π/6 = -1/2 + i√3/2
e6π/6 = -1
e8π/6 = -1/2 – i√3/2
e10π/6 = 1/2 – i√3/2
What a fun problem! Credit to the math consultants on the show Young Sherlock.
References
The Mathematical Crimes of Young Sherlock
https://theconversation.com/the-mathematical-crimes-of-the-young-sherlock-holmes-series-278812
Christopher Scott Vaughen
https://www.youtube.com/watch?v=tRCkPqQTg8k
IGN clip
https://www.youtube.com/watch?v=WPC8mAcl0iw
Prime Video clip
https://www.youtube.com/watch?v=7DOsYvn3S7c
Young Sherlock Prime Video
https://www.amazon.com/gp/video/detail/B0G2BTDG5G/
WolframAlpha
https://www.wolframalpha.com/input?i=1%5E%281%2F6%29
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)
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.




