π.indexOf(’0919’)

WikiPediaで円周率のページを読んでいたら、Pi-Search Pageというのがあることを知った。

  1. 任意の数字がπの中で何桁目にでてくるか
  2. πのなかの任意の桁からの数桁を表示する

というページ。とりあえず誕生日の0919を検索してみたら2126桁目にでてくるらしい。

みんな誕生日は検索するんだろう。ページの下の方にトリビアが書いてあって、月日として認識できる最後の数字は1203(Dec 03,or 12 Mar)で60872桁目に登場するらしい。

How many digits to find a birthday?

Many thanks to Carola Schermuly, who prompted me to figure out a most useless (but interesting) bit of Pi trivia: The maximum number of digits of Pi necessary to find any month-day combination is 60872. Interestingly enough, this is the same value with European date formats (1203 meaning March 12th) and American date formats - the same date, December 3rd, is the winner. It takes 60872 digits after the decimal point to find them.

http://www.angio.net/pi/piquery.html#find