Looking for Pi

What is the smallest positive integer n n such that 201 6 n 2016^n has a string of digits 314159 in its decimal representation?


The answer is 595.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Brock Brown
Mar 23, 2016

Python 3:

1
2
3
4
n = 0
while '314159' not in str(2016**n):
    n += 1
print ("Answer:", n)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...