The pi-position-dates

Some time ago, I posted a heads up due to the upcoming pi and e days. I also made some statistics to find the best approximation of the two days. Both of them are in July, by the way, July 19 and July 22.

Anyways, with Joakim Alvbrant and Niklas U Andersson as my inspiration sources we talked the other day about finding numbers in pi. For example,

has a database of 2 billion decimals of pi. This means I can search for a number, like my birth date, and I would get the decimal place of that particular string, sequence of digits, number, in pi.

So, what would be better than looping through all the dates of this year and search for the (first) position in pi? So starting from 2014-01-01 and ending at 2014-12-31. (Yes, European, standardized style.)

By parasiting on the Subidiom server and running some wget and text parsing (sed/grep/tr), we can quite easily find the numbers we are looking for using a for loop on top.

So, please find the graph of the date-position in pi below.

image10

The maximum value, i.e., the most problematic day is obviously the 7th of April, no wonder – you have to count to 873 million! A more easy-access day is the 20th of October – only 9803 down the road. The average is 111 million…

As always, thanks to Magnus the Magnificent for being a constant inspiration when solving important problems.

Advertisements

One thought on “The pi-position-dates

  1. Pingback: Finding Pi with an ABC-80, or soon is pi day, or what did I do 29 years ago? | Mixed-Signal Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s