# What is the 100 trillionth digit of the decimal point of pi?

4 min read## What is the 100 trillionth digit of the decimal point of pi?

- CVE-2007-4559 Python vulnerability ignored for 15 years puts 350,000 projects at risk of code execution
- RISC-V only takes 12 years to achieve the milestone of 10 billion cores
- 14000 cores + 450W: RTX 4080 graphics card perfectly replaces the RTX 3080
- Big upgrade: The difference between Bluetooth 5.0 and 5.2
- Geeks Disappointed that RTX 4080/4090 doesn’t come with PCIe 5.0
- What are advantages and disadvantages of different load balancing?

What is the 100 trillionth digit of the decimal point of pi? Google has the answer with Debian servers.

π = 3.1415926 ……

Presumably in the student days, when it comes to memorizing the number behind the decimal point of pi, many people’s desire to win or lose is quietly aroused, and the view that “the more you recite, the better” is also deeply rooted in our minds. middle.

As everyone knows, in mathematics and science, such a view still exists, but the competition at this time has already shifted from the human brain to cloud computing.

Recently, Emma Haruka lwao, a developer from Google Cloud, broke a new world record for calculating the value of π, which can calculate the value of π up to 100 trillion digits.

After verification, the decimal point value of the 100 trillionth is 0.

In response, the Google team posted a celebration saying, “Records are meant to be broken.”

## How did Google figure out the 100 trillion pi decimal point?

Looking back at the competition in the industry on the decimal point value of π, it seems that it has entered a state of anxiety in recent years, and the time for breaking records is getting shorter and shorter.

In 2019, Google calculated pi to 31.4 trillion decimal places, setting a world record for that year.

In 2021, scientists at the Graubünden State University of Applied Sciences calculated a further 31.4 trillion constants, bringing the total to 62.8 trillion decimal places, a world record.

In March 2022, after Google used Google Cloud for the second time, it calculated 100 trillion digits after the decimal point.

The project took less than 158 days in total, or more precisely, 157 days, 23 hours, 31 minutes, 7.651 seconds.

When we took a deeper look at how Google calculated the 100 trillion pi decimal point, it revealed the technology behind it:

- Program: The heavy lifting was done using a program developed by Alexander J. Yee called y-cruncher v0.7.8 (http://www.numberworld.org/y-cruncher/)
- Algorithm: Chudnovsky algorithm (https://arxiv.org/abs/1809.00533)

The primary compute node is an n2-highmem-128 machine running Debian Linux with 128 vCPUs, 864GB RAM, and supporting 100Gbit/sec egress bandwidth.

In addition, Google created a network storage cluster because the n2-highmem-128 provides 257TB of additional storage for a single virtual machine, and it estimates that the temporary storage required for computing requires at least 554TB.

Each storage server is an n2-highcpu-16 machine configured with two 10,359 GB zone-balanced persistent disks.

The N2 machine series offers a well-balanced price/performance ratio with 32 Gbps of network bandwidth when configured with 16 vCPUs and the option to use the latest Intel Ice Lake CPU platform, making it a good choice for high-performance storage servers.

Through benchmarking, Emma Haruka lwao finally calculated that the first trillion digit of π was 0.

It has since been verified using another algorithm called the Bailey-Borwein-Plouffe formula.

Emma Haruka lwao said, “This validation was the scariest moment of the whole process, because five months after the calculation started, there was no sure way to know if the calculation was successful.

appily, the Bailey-Borwein-Plouffe formula found Our results are valid. Yay!”

Here are the last 100 digits of the result:

## What’s the point of counting so many decimal points?

After verification, the result is undoubtedly proved to be correct. However, many netizens also questioned, what is the significance of calculating the value of π so much?

In this regard, the foreign media The Register also estimated the cost of Google’s project:

- The n2-highmem-128 machine is priced at $7.706976 per hour, so the compute server costs about $29,000.
- The n2-highCPU-16 instance costs $0.57 per hour, or about $70,000 for the entire job. In addition, data movement greatly increases this task.

And these costs are all to calculate the 100 trillion values in π.

However, in Google’s own view, it’s all worth it together.

In a blog post, Iwao noted, “This large-scale computation demonstrates how Google Cloud’s flexible infrastructure allows teams around the world to push the boundaries of scientific experimentation. It’s also an example of the reliability of our product — the program works without node failure. has been running for over five months and correctly handles every bit of 82 petabytes of disk I/O. Improvements in our infrastructure and products over the past three years have made this computation possible.”

In addition, Google also open sourced the script code of the automation solution used in this calculation on GitHub ( https://github.com/GoogleCloudPlatform/pi-delivery/tree/main/pi-100t ). Interested students may wish to learn more about it through the code.

Reference link:

https://cloud.google.com/blog/products/compute/calculating-100-trillion-digits-of-pi-on-google-cloud

https://www.theregister.com/2022/06/09/google_100_trillion_digits_of_pi/?td=rt-3a

- DIY a PBX (Phone System) on Raspberry Pi
- How to host multiple websites on Raspberry Pi 3/4?
- A Free Intercom/Paging system with Raspberry pi and old Android phones
- DIY project: How to use Raspberry Pi to build DNS server?
- Raspberry Pi project : How to use Raspberry Pi to build git server?