Taking turns isn’t fair. We fixed it.



Click this link and use my code STANDUPMATHSBFCM to get 45% off your first payment for boot.dev

Listen to the episode of A Problem Squared where I chat ABBA-BAAB with Bec Hill.
Spotify:
Apple:

Huge thanks to Sophie Maclean.
And here are all her Numberphile videos.
And her new channel!

My original 2015 video on the Thue-Morse sequence.

Watch me show Sophie the repeating patterns we can’t explain.

The fair-share sequences for 2 to 24 people.

Here is the math stackexchange answer where I originally found kram1032’s duel method explanation and code.

The 2013 paper “Greedy Galois Games” by Joshua Cooper and Aaron Dutle.

Damien’s Thue-Morse visualiser.

Damien’s visualiser was discussed on APS episode 143 in AOB.

This is my version of Damien’s visualisation that you can download for yourself.

Here’s a reasonable chunk of the sequence for reference:

ABBA BAAB BAAB ABBA BAAB ABBA ABBA BAAB
BAAB ABBA ABBA BAAB ABBA BAAB BAAB ABBA
BAAB ABBA ABBA BAAB ABBA BAAB BAAB ABBA
ABBA BAAB BAAB ABBA BAAB ABBA ABBA BAAB
BAAB ABBA ABBA BAAB ABBA BAAB BAAB ABBA
ABBA BAAB BAAB ABBA BAAB ABBA ABBA BAAB
ABBA BAAB BAAB ABBA BAAB ABBA ABBA BAAB
BAAB ABBA ABBA BAAB ABBA BAAB BAAB ABBA

Huge thanks to my Patreon supporters. I’d choose them first every time.

CORRECTIONS
– None yet, let me know if you spot anything!

Filming and editing by Alex Genn-Bash
Written and performed by Matt Parker
Additional writing and performing by Sophie Maclean
Directed by Rhys Jones
Produced by Nicole Jacobus
Music by Howard Carter
Design by Simon Wright and Adam Robinson

MATT PARKER: Stand-up Mathematician
Website:

source

44 Comments

  1. What does "more rounds" mean? For the charts at the end? As in you in-out-mid-end for more rounds? Why did the probabilities on the y axis change for more rounds?

  2. This would probably solve the 1st player advantage for both Splendor and Dominion. Especially Dominion since it ends before every player gets the same number of turns.

  3. Soda machine dispensers should do this for dispensing syrup to fizzy water, which also begs the question… If the ratio of syrup to water isnt 50/50, is there a Thue-Morse sequence for a given ratio? fair is obviously 50/50, but what If I wanted 60/40? might be a silly question but interesting to ponder

  4. I was running a Brownie meeting a few weeks back where ~20 children needed to choose coloured clay and I didn't have much of each colour so I had them come up multiple times in different orders to choose one colour at a time. Turns out by grabbing my register and doing what felt fair, I accidentally did a Hydra draft!

  5. Uma forma que encontrei de entender seria duas pessoas escolhendo numeros finitos. Sendo turnos alternados, a primeira pessoa sempre tem uma vantagem de 1 ponto a cada rodada, então a segunda pessoa tem dois turno pra compensar essa desvantagem. Estando igualados, o turno passa normalmente pra proxima pessoa e se inverte ja que nesse momento a vantagem mudou de lado.

  6. 9:30 your explanation confused me because you said you have a 98% chance to win on any of your turns, but the math is for a 2% chance (in other words equal odds). I can see that it can be adjusted for unbalanced player skill levels, but that would not be the ABBABAAB sequence every time.

    As described it would go:
    A (.02 × .98⁰ × .02⁰ = .02) .02 – 0
    B (.98 × .98¹ × .02⁰ = .9604) .02 – .9604
    A (.02 × .98¹ × .02¹ = .000392) .020392 – .9604
    A (.02 × .98² × .02¹ = .00038416)
    And B never gets another turn I think. It kinda breaks if (1-A)×B>=50%.

  7. The table @9:48 doesn't work for a fair coin flip 50/50, or any P that isn't near 0%.

    Take a fair coin, P=50%:

    After turn 1, A will have won 50% of the time.
    After turn 2, B will have 25% of the time.
    Turn 3 goes to B who will have won an additional 1/2 * 1/2 * 1/2 = 1/8th of the time for a cumulative probability of 3/8ths, which is less than 50%, so B would go again…

    Thus the pattern would be A B B B. The larger the % of winning on a given turn, the more turns B needs to catch up to A going first. As P increases, A is more and more likely to have already won, so B needs more turns.

    As P -> 0, the pattern generated by this algorithm approaches the true Thue-Morse A B B A B A A B …

    In fact, at P=0.5, A goes first, then no matter how many turns B gets, they can't exceed A's probability of having won already, 50%. So the sequence calculated mathematically at P=0.5 is A BBBBBBBBBBBB. In other words, if A doesn't win on their first chance, it's B.

    With a P=25% the fair sequence would be: A B B A B A B A A B B A A B B A B A A B A B A B B A B A

    NB: My point is that the fair sequence needs to be predetermined based on the probability of winning on any given turn, and the sequence approaches the Thue-Morse as P approaches 0%, and it diverges as P approaches 50%.

    Did I miss something?

  8. I know this kinda sounds crazy but ive got to be honest….I have genuinely thought about this in my head before. Sometimes when I'm tapping my feet I'll think (well call my left foot A and my right foot B); Tap a, Tap b, but now a got to go first and b didn't so lets go back to make it even tap b then a. Well now its abba but b deserves to be the next one abbabaab but then usually it just becomes too much to memorize but i never thought about it….. that's really cool

  9. Seems like the chances of winning stabilize with the number of turns taken. I wonder at which amount of turns things we can call the process completely fair.

  10. Hi Matt, The math behind this formula seems a lot like the math used for choosing proportional representation (reference: "Why it’s mathematically impossible to share fair" Stand-Up-Maths) which just allows the "chance of success" to vary separately for each player. Neat
    PS – Until I saw "Thue" written out, i thought you bother were saying "2A"!

  11. 11:45 when you demonstrate willingness to offload the cognitive burden of a ""non-important"" creative process you determine to be ""not worth the effort"", people no longer can hold trust in whether or not any of your creative output is your own work. It's said so casually and conversationally too that not only does it raise suspicions about what work from you or your team is actually human work going forward, now I can't be certain what past content I gave the benefit of the doubt to. More and more people who I looked to even just for their creative minds, genuine human creativity that they felt the desire to share with others, have determined they are actually just content production optimization machines; they determined, "if everyone else is using it, I need to keep up", revealing what they saw the function of this platform to be, the intention behind their "art". I certainly don't go to the theater to watch the latest make-money-for-[insert company] known-profitable-creative-bullet-point-bashed movie, I go because I see something creative that inspires something in me, and anytime I fell for the marketing and realized I was watching the output of a money making formula I'm made apathetic to the world.

    I started watching numberphile and computerphile videos maybe 13 or 14 years ago, I know in some hypothetical thought space world generative AI could serve as a useful tool. I also know plenty about the ethical dilemmas that academics have been chirping on about for decades that have been side stepped because the companies themselves are in alignment with capital. I'm very familiar with the utility theory tauts, I'm familiar with the utility the companies taut, and I'm very familiar with direct-to-investors communicating the companies do that spells out their alignment as exponential profit machines and the greedy aim for worker obsolescence.

    It's all marketing, but there's real motives and incentive structures. I'm so apathetic to the beauty and creativity I once saw in people that inspired me. Creative identities evidently just marketing, but that was the game of this space, shame the incentive structure rewards sloppification of creativity. How miserable a thing to reduce your art to.

Leave a Reply

Your email address will not be published. Required fields are marked *

You might like

© 2026 Cantinho do Vídeo - WordPress Video Theme by WPEnjoy