Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Expected number of steps until a queue of nnn people has passed all nnn ordered tests consecutively

Probability & statistical mechanics

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

We are given a queue of nnn people {p1,…,pn}\{p_1, \ldots, p_n\}{p1​,…,pn​}. They each have to pass nnn exams {t1,…,tn}\{t_1, \ldots, t_n\}{t1​,…,tn​}. For simplicity we can "draw" the setting in the following way: [tn,tn−1,…,t1,p1,p2,…,pn][t_n,t_{n-1}, \ldots, t_1, p_1, p_2, \ldots, p_{n} ][tn​,tn−1​,…,t1​,p1​,p2​,…,pn​] On the left we have the nnn tests each person standing in a queue on the right has to pass.

The rules are as follows:

a) Each person can only write one exam at a time and one has to pass exam tit_iti​ in order to write exam ti+1t_{i+1}ti+1​.

b) Each exam tjt_jtj​ can only be taken by maximally one person plp_lpl​ in the same step.

c) The probability that a person pkp_kpk​ passes a test tit_iti​ is 0.50.50.5. In case of failure, the person pkp_kpk​ has to take test tit_iti​ again in the next step. In case of a pass, there are two possible cases in the next step. If someone in front of pkp_kpk​ is taking the test ti+1t_{i+1}ti+1​, then person pkp_kpk​ has to wait (=does nothing). If the test ti+1t_{i+1}ti+1​ is available, it moves on to test ti+1t_{i+1}ti+1​ and takes it.

d) In each step, each person either takes a test or waits. A person waits ⇔ \Leftrightarrow⇔ a person is infront of it. A person takes a test ⇔\Leftrightarrow⇔ an available test is in front of it. In each step every person will perform an action (wait/take test).

Here is an example. Let us assume n=3n=3n=3, then we have [t3,t2,t1,p1,p2,p3][ t_3,t_2,t_1,p_1,p_2,p_3][t3​,t2​,t1​,p1​,p2​,p3​] as a start setting. In the first step only p1p_1p1​ can take the test t1t_1t1​. If it passes it, it will look like this: [t3,t2,p1,t1,p2,p3][ t_3,t_2,p_1,t_1,p_2,p_3][t3​,t2​,p1​,t1​,p2​,p3​]. Now in the second step p1p_1p1​ takes test t2t_2t2​ and person p2p_2p2​ takes test t1t_1t1​. Assume now p1p_1p1​ fails, but p2p_2p2​ passes, then it looks like this: [t3,t2,p1,p2,t1,p3][ t_3,t_2,p_1,p_2,t_1,p_3][t3​,t2​,p1​,p2​,t1​,p3​]. Thus, in the third step p1p_1p1​ has to retake test t2t_2t2​, p2p_2p2​ waits and p3p_3p3​ takes test t1t_1t1​.

I want to compute the expected number of steps until all people have passed all tests.

The way I have approached this problem is to think of it as a markov chain with one absorbing state. So that I can compute the expected time by writing down the transition matrix, deleting the row and column corresponding to the final state and inverting III minus this matrix to get the expected times spent at each of the states. This does not give me a solution for general nnn however since I have not managed to invert this matrix without fixing nnn first. So I am hoping for a different solution.

I have done simulations for some nnn. It seems that the solution should be something like E(n)=an+bE(n) = an + bE(n)=an+b for large nnn where a∈[6,7]a \in [6,7]a∈[6,7], but I am not sure as the program takes too long for larger values of nnn.

Your help would be much appreciated!

Statement and context adapted from MathOverflow · Lucas

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : stochastic-processes · markov-chains · expectation

Authors listed by the source : Lucas

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : September 2, 2023

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni