Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ghosts Age by makstheimba
def checkio(opacity):
age = 0
clarity = 10000
fib1, fib2 = 1, 1
while clarity != opacity:
age += 1
if fib1 < age:
fib1 = fib2 + fib1
fib2 = fib1 - fib2
if age == fib1:
clarity -= age
else: clarity += 1
return age
Feb. 24, 2015