The original problem (post) is from Clément Canonne on Bluesky:
It’s the end of the semester! To celebrate that, one last* puzzle 🧩 for 2024: pick a permutation π of {1,2,…,n} uniformly at random, and let L(π) be the length of its longest increasing sub-sequence. What is the expectation of L(π)? Is it O(1), Θ(log n), Θ(√n), Θ(n)—something else?
We can treat as a permutation of uniformly spaced values on . If we require that the item in a sequence must be greater than , the waiting time between observing items and is exponentially distributed with . Summing the first expected waiting times yields . This is sufficient to see that .
— I later learned that Erdos proved (folklore? Proofs From The Book?) that an increasing or decreasing sequence of items must exist.