1. Home
  2. Numberphile

Oct 2, 2025

Solving the infinite raffle puzzle with a new multiplication

80 min → 2:12

Overview

The speaker solves an infinite raffle math puzzle by using multiplicative functions, the Dirichlet product, and the Möbius function to reveal Euler's totient function.

3 things to know

Numberphile: Divisor raffle ticket counts always equal the number

Numberphile explains that the raffle function counts how many tickets carry a given number n, following the rule that the ticket counts for all divisors of n must add up to n.

▶ Watch at 0:57

Numberphile reveals the raffle function is Euler's totient function

Numberphile reveals that the raffle function is actually Euler's totient function, which counts how many positive integers up to a given integer n are relatively prime to n.

More

The final solution to the puzzle.

▶ Watch at 54:49

Problem Reframing

The raffle puzzle's core rule, Σ R(d) = n, is reframed using the Dirichlet Product as R ★ ι = id, where ι is the constant-1 function and id is the identity function.

▶ Watch at 1:05:05

Also in this episode

Numberphile uses the Möbius function to solve the raffle

Numberphile identifies the Möbius function as the Dirichlet inverse of the constant-1 function, making it the key needed to isolate and solve for the raffle function.

More

The Dirichlet inverse of the constant-1 function (ι).

▶ Watch at 52:39

Numberphile says the Dirichlet product combines functions using divisors

Numberphile defines the Dirichlet product of two arithmetic functions at n as the sum of their values multiplied together across every pair of divisors whose product equals n.

Numberphile defines the blip function as zero above one

Numberphile introduces the blip function as the multiplicative identity for the Dirichlet product, giving it a value of 1 at 1 and 0 for all numbers greater than 1.

More

The multiplicative identity for the Dirichlet product.

Numberphile: Strongly multiplicative functions work for every number pair

Numberphile places arithmetic functions into a three-tier group where multiplicative functions satisfy f(ab) = f(a)f(b) for co-prime numbers and strongly multiplicative functions obey that rule for all numbers.

Quotes

“For any number, say 10, the number of tickets of its divisors must add up to 10.”

▶ Watch at 0:57

“You're going to tell me 'divide by 5', and I'm going to say, 'Hold on, I don't have division here, I just have multiplication.'”

▶ Watch at 52:39

“Because multiplicativity is contagious.”

▶ Watch at 1:05:05

2 more quotes

“Let's give it a name. I'm going to call it mu for Möbius because apparently he introduced it.”

▶ Watch at 54:49

“So there are twelve tickets with number 42 written on it.”

▶ Watch at 1:13:39

Full summary

Episode Overview

  • The podcast introduces a mathematical puzzle about an "infinite raffle" where the total number of tickets for the divisors of any number n must sum to n.
  • To solve the puzzle, the speaker builds a formal mathematical framework, exploring concepts from number theory like multiplicative functions and their properties.
  • A new form of "multiplication" called the Dirichlet product is introduced, which reframes the original problem into an algebraic equation involving functions.
  • The solution is found by identifying and applying the inverse of a key function (the Möbius function), ultimately revealing the raffle function to be the well-known Euler's totient function.

Key Concepts

  • The Raffle Function (R(n)): A function representing the number of raffle tickets with the number 'n' on them, governed by the rule that the sum of R(d) over all divisors 'd' of 'n' equals 'n'.
  • Hierarchy of Functions: Arithmetic functions are the broadest category, containing Multiplicative functions (which satisfy f(ab) = f(a)f(b) for co-prime a, b), which in turn contain Strongly Multiplicative functions (where the rule holds for all a, b).
  • Dirichlet Product (f ★ g): A special operation to combine two arithmetic functions, where (f ★ g)(n) is the sum of f(d₁)g(d₂) for all pairs of divisors (d₁, d₂) whose product is n.
  • Problem Reframing: The raffle puzzle's core rule, Σ R(d) = n, is reframed using the Dirichlet Product as R ★ ι = id, where ι is the constant-1 function and id is the identity function.
  • Blip Function (ε): The multiplicative identity for the Dirichlet product. It is defined as ε(1)=1 and ε(n)=0 for all n > 1.
  • Möbius Function (μ): The Dirichlet inverse of the constant-1 function (ι). This function is the key to isolating and solving for the Raffle Function.
  • Euler's Totient Function (φ(n)): The final solution to the puzzle. The Raffle Function R(n) is revealed to be Euler's totient function, which counts the positive integers up to a given integer n that are relatively prime to n.

Quotes

  • At 0:57 - "For any number, say 10, the number of tickets of its divisors must add up to 10." - This is the clearest explanation of the core rule governing the "raffle function."
  • At 52:39 - "You're going to tell me 'divide by 5', and I'm going to say, 'Hold on, I don't have division here, I just have multiplication.'" - Explaining the need to find a multiplicative inverse within the new algebraic structure of Dirichlet convolution, rather than relying on standard division.
  • At 54:49 - "Let's give it a name. I'm going to call it mu for Möbius because apparently he introduced it." - Naming the Dirichlet inverse of the constant 1-function as the Möbius function (μ), a critical step in solving for the raffle function.
  • At 1:05:05 - "Because multiplicativity is contagious." - Stating the key theorem that if two functions are multiplicative, their Dirichlet product is also multiplicative.
  • At 1:13:39 - "So there are twelve tickets with number 42 written on it." - After a long and detailed journey, the speaker uses the final formula to definitively answer the central question about the number 42.

Takeaways

  • Complex problems can often be solved by reframing them within a different mathematical or logical structure, such as moving from simple summation to the Dirichlet product.
  • Seemingly simple puzzles can be connected to deep and fundamental concepts in mathematics, as the raffle function was revealed to be Euler's totient function.
  • To solve for a variable in a new algebraic system, one must first identify the system's identity element ("one") and then find the appropriate inverse operation.
  • The number of tickets for any number n in the raffle can be calculated using the formula for Euler's totient function: φ(n) = n * (1 - 1/p₁) * (1 - 1/p₂) * ... where p₁, p₂, etc., are the distinct prime divisors of n.

Watch the full episode 1 hr 20 min

Read along with the audio summary

How many tickets in an infinite raffle have the number forty two written on them, if the total number of tickets for the divisors of any number must add up to that number itself? That is the mathematical puzzle raised by the speaker of this podcast episode, which came out on October 2, 2025. By the end, you will learn how reframing a simple counting rule within a new algebraic system unlocks a famous formula from number theory.

The secret rule behind the infinite raffle.

Imagine a raffle where the tickets are governed by a strict mathematical law. The speaker defines the Raffle Function as the number of tickets with a given number written on them. For any number, say ten, the number of tickets for all of its divisors must add up to ten.

To solve this puzzle, the speaker builds a formal mathematical framework.

How mathematical functions fit inside one another like nesting dolls.

Not all number rules behave the same way when you multiply inputs together. The broadest category is arithmetic functions. Inside that group sit multiplicative functions, where the function of a product equals the product of the functions, as long as the two numbers are co prime. Inside that group sit strongly multiplicative functions, where that multiplication rule holds true for all pairs of numbers, no matter what factors they share.

A new way to multiply functions together.

Instead of standard multiplication, number theory offers a special operation to combine two arithmetic functions, called the Dirichlet product. To find the Dirichlet product of two functions for a given number, you find all the pairs of divisors that multiply to make that number. Then, you multiply the first function of the first divisor by the second function of the second divisor, and add all those results together. Better yet, as the speaker notes, multiplicativity is contagious, meaning if two functions are multiplicative, their Dirichlet product is also multiplicative.

This special operation allows us to rewrite the entire puzzle.

Turning a counting puzzle into an algebra equation.

With the Dirichlet product in hand, the speaker reframes the original raffle rule. Instead of a long sum of divisors, the rule becomes a clean algebraic equation involving functions. In this new setup, the Raffle Function combined with the constant one function equals the identity function.

Why a new kind of multiplication needs a new kind of number one.

In standard algebra, you isolate an unknown variable by dividing, which relies on the number one. As the speaker points out, we do not have standard division here, only this new multiplication, so we must first identify the system's identity element, its version of the number one. That role belongs to the Blip Function, which equals one when the input is one, and drops to zero for every number greater than one.

Now that we know what plays the role of one, we can find an inverse to undo the equation.

The function that unlocks the unknown variable.

To isolate the Raffle Function, we need the Dirichlet inverse of the constant one function. The speaker calls this inverse mu for Möbius, because apparently he introduced it. Applying the Möbius function acts like division in this algebraic system, stripping away the constant one function and leaving the Raffle Function all by itself.

The raffle puzzle is actually a famous theorem in disguise.

Once isolated, the Raffle Function is revealed to be a well known concept in mathematics: Euler's totient function. This function counts how many positive whole numbers up to a given number are relatively prime to it. We can calculate the exact number of tickets for any number by multiplying that number by one minus one over each of its distinct prime divisors.

Complex problems can often be solved by reframing them within a different mathematical structure, turning a simple puzzle into a deep concept in number theory. So there are twelve tickets with number forty two written on it.

More from Numberphile

Related Episodes