From 77a95075b201be6ddf61cda3f7b674ddd073b1d0 Mon Sep 17 00:00:00 2001 From: Burke Mamlin Date: Sun, 10 Dec 2023 23:02:55 -0500 Subject: [PATCH] Create README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..14e25de --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# π-chain + +Pi chain is a little game for the super nerd who has memorized Pi. A pi chain is a +series of numbers created by a number at any given decimal digit of pi and using +the decimal digits of pi to determine the next number in the chain. You can play +single-digit pi chain with the first 9 decimal digits of pi, double-digit pi chain +with the first 99 decimal digits of pi, or triple-digit pi chain with the first +999 decimal digits of pi. + +![pi-chain.html](pichain.gif) + +For example, starting with the number 4, a single-digit pi chain would be the +series: 4, 5, 9, 3, 1. This is because the 4th decimal digit is 5, the 5th is 9, +the 9th is 3, the 3rd is 1, and then the 1 repeats infinitely. + +For two-digit pi chain, starting with 37, the two digits at the 37th decimal +digit of pi are 19, at the 19th decimal digit of pi you find 46, and at the +46th decimal digit of pi, you find 37, which means you've found a 3-link loop. + +For three-digit pi chain, you start with any random number from 1 to 999 and +use the three digits of pi at that position to determine the next link in the +pi chain.