#!/usr/bin/env python2 # Project Euler: problem 63 # https://projecteuler.net/problem=63 import math if __name__=="__main__": ans = 0 for a in xrange(1,10): print 1./(1-math.log(a, base=10)) ans += int(1./(1-math.log(a, base=10))) print ans