Article Z9R2 Finding 2016 in pi

Finding 2016 in pi

by
John
from John D. Cook on (#Z9R2)

2016 appears in I starting at the 7173rd decimal place:

pi2016.png

You can confirm this with Mathematica or Wolfram Alpha:

 Mod[ Floor[10^7177 pi] , 10000]

I found it using the following Python code:

 >>> from sympy import pi >>> digits = str(pi.evalf(10000))[2:] >>> digits.find('2016') 7173

By the way, it's also true that 2016 = 1 + 2 + 3 + " + 63.

gwbSLs564GE
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments