def f(n): return int((20130000*n-2013.5)/20129999) n=1p=f(n)s=f(n+1) while s==p+1: p=s n+=1 s=f(n+1) print(n)
Standard input is empty
2013
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!