I work at a company that posts a birthday calendar. I noticed that there was a string of four consecutive days with no birthdays. What is the probability of that happening?
Problem Statement
Given $n$ people, what is the probability of a observing a birthday calendar with no gaps of length $g$ or greater.
In my case $n = 400$ and $g = 4$. I'm mostly interested in an analytical solution.
Partial Solution
We will count the number of birthday assignments that have gaps less than $g$.
To do this, we will count assignments which have exactly $d$ distinct birthdays ($d = 1, 2, 3, ..., 365$) and sum over $d$.
For a given $d$, we will require a counting of two things:
- Number of ways to partition $n$ birthdays among $d$ days.
- Number of ways to select $d$ days from the year with no gaps of $g$ or greater.
I found a solution to 1: $S(n,d) \times d!$ where $S(n,d)$ is a Stirling Number Of Second Kind. See solution here:
Consecutive birthdays probability
I need help on 2.