Education

pi123: Where the Sequence 123 Hides in the Digits of Pi

Pi, the ratio of a circle’s circumference to its diameter, never ends and never repeats. Somewhere inside that endless string of digits sits the simplest sequence of all: 123. The hunt for it has a nickname — pi123 — and here is the direct answer: the sequence 123 first appears at the 1,924th decimal place of pi.

In this article we’ll pin down exactly where 123 hides, how often it shows up, what that tells us about whether pi’s digits are truly random, and how you can run the search yourself with a few lines of Python. One clarification first: some websites use “pi123” to mean the first 123 digits of pi — but the far more interesting story is the sequence itself, and that’s the one we’ll follow.

What pi123 Actually Means (and What It Doesn’t)

pi123 is not an official mathematical constant. You won’t find it in textbooks next to π or e. It is simply a nickname for the game of spotting the digits 1-2-3, in order, inside pi’s decimal expansion. Here is what the term does and doesn’t refer to:

  • What it is: the search for the sequence “123” within pi’s digits — nothing more, nothing less.
  • Not a new constant: it is the same old pi, viewed through a playful lens.
  • Not an app or finance tool: several low-quality articles online invent “Pi123 software” with magical powers in encryption, AI, and personal finance. That is not a real product — treat those claims with suspicion.
  • Not the first 123 digits of pi: some sites define pi123 that way, but counting off a fixed block of digits isn’t the interesting question. Finding a specific sequence hiding inside the randomness is.

Humans have chased pi’s digits for millennia — from the Babylonians’ 3.125 to Archimedes’ famous 22/7 — the same spirit behind the everyday math formulas we still use. So pi123, at its core, is just the latest chapter of that very old curiosity.

Where Does 123 First Appear in Pi?

Magnifying lens hovering over a stream of pi digits, searching for the sequence 123

After 1,923 digits with no 123 in sight, the sequence finally shows up at decimal place 1,924. That is a long wait — and it is exactly what makes the hunt fun. I verified this by computing pi to 100,000 digits and scanning the result directly, so these positions are exact, not quoted from a random blog:

Appearance Decimal place Note
1st 1,924 The long-awaited debut
2nd 2,938 Over a thousand digits later
3rd 2,976 Just 38 digits after the 2nd
4th 3,892 —
5th 6,548 —

Notice the cluster: the second and third appearances land only 38 digits apart, right after a gap of more than a thousand. In a truly random stream, clumps like that are perfectly normal — we will come back to why.

pi123 by the Numbers: How Often Should 123 Appear?

If pi’s digits behave like random digits, every three-digit sequence — 123, 741, 999 — should turn up about once every 1,000 digits. That is just probability: ten possibilities for each of three positions, so 1 in 1,000. Here is how the real data compares:

  • Expected in the first 100,000 digits: about 100 appearances.
  • Actually found: 91 appearances.
  • Average gap between appearances: roughly 1,099 digits — close to the expected 1,000.

That is a remarkably good match. 91 versus 100 is the kind of difference you expect from ordinary statistical wobble, not from a hidden pattern. If pi’s digits were secretly avoiding 123, we would see far fewer hits. To put pi123 in perspective, here are two famous digit sequences hiding in pi, both positions verified by direct computation:

Sequence First appears at decimal place Claim to fame
123 1,924 The pi123 hunt itself
999999 762 The Feynman point — six 9s in a row, named for physicist Richard Feynman

The Feynman point is a nice reality check. Six identical digits in a row sounds impossibly rare, yet it shows up at digit 762 — far earlier than our humble 123. Randomness is stranger than intuition.

Why Does 123 Turn Up at All? Randomness and the Normality Question

Abstract visualization of randomness in pi's decimal expansion

This is where pi123 stops being trivia and starts being science. Mathematicians suspect pi is a “normal” number — meaning every finite digit sequence appears equally often in the long run. Normality has never actually been proven for pi, but every statistical test so far supports it.

The 91-in-100,000 result for pi123 is exactly the kind of evidence normality supporters point to. And that little cluster at 2,938 and 2,976? Random data clumps. Toss a coin a hundred times and you will see runs of heads — not because the coin is rigged, but because streaks are what randomness genuinely looks like.

For perspective, scientists have computed pi to more than 100 trillion digits, and no repeating pattern has ever emerged in any of them. That precision matters in serious work too — engineers guiding spacecraft rely on pi to chart planetary orbits, a subject our beginner’s guide to astronomy explores in more depth. Pi’s apparent randomness keeps showing up wherever precision counts.

How to Find 123 in Pi Yourself

You don’t need a supercomputer. Any laptop can compute the first 100,000 digits of pi in seconds and find every 123 in them. Here is how:

  1. Install Python’s high-precision library: open a terminal and run pip install mpmath.
  2. Paste the short script below into a file and run it — it computes pi to 100,000 digits and reports exactly where 123 first appears.
  3. Change ‘123’ to your birthday, your lucky number, or any sequence you like, and see where it lands.
  4. Compare your results with the table above — or try piday.org, which lets you search pi’s digits right in your browser.

Computing the first 100,000 digits takes seconds on a modern laptop; the records now run to trillions of digits, thanks to steady advances in computing. The script above is all it takes to join in.

Frequently Asked Questions

Is pi123 a real mathematical constant?

No. pi123 is an informal nickname for the hunt for the sequence 123 inside pi’s digits. It has no formal definition, no textbook entry, and no official status — it is the same old pi, just approached as a game.

Where does the sequence 123 first appear in pi?

At the 1,924th decimal place. This has been verified by direct computation of pi’s digits.

How often should 123 appear in pi’s digits?

About once every 1,000 digits, if the digits are random — and they appear to be. In the first 100,000 digits, 123 shows up 91 times, very close to the expected 100.

What is the Feynman point?

The Feynman point is a famous stretch of six 9s in a row (999999) beginning at decimal place 762 of pi. Physicist Richard Feynman once joked he would recite pi up to that point and then say “nine nine nine nine nine nine, and so on.”

Can I really search pi’s digits on my own computer?

Yes. The short Python script in this article computes 100,000 digits and finds every 123 in seconds. You can also search digits online at piday.org.

Does finding 123 in pi prove pi’s digits are random?

No — it supports the idea, but it doesn’t prove it. Mathematicians conjecture that pi is a “normal” number, meaning every sequence appears equally often, but this has never been proven. Results like pi123’s 91-in-100,000 are consistent with the conjecture, which is the best we can say for now.

pi123 started as a curiosity — three little digits hiding nearly two thousand places deep in pi — and ended up as a hands-on lesson in randomness, probability, and how to check a mathematical claim with your own computer. That is the real payoff: not the sequence itself, but what hunting for it teaches you.

ITBigBash

ITBigBash

ITBigBash is an independent UK online publication covering technology, entertainment, health, lifestyle, sports, business and more. Every article is researched from primary and official sources, fact-checked before publishing, and reviewed regularly so it stays accurate and up to date. Read our Editorial Policy: https://itbigbash.co.uk/editorial-policy/