STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
x = Fraction(5*(x.numerator//x.denominator__floor__(), 3)
proposed
editing
editing
proposed
while x<=n or x.denominator > 1 or x<=n:
approved
editing
proposed
approved
editing
proposed
return c # Chai Wah Wu, Sep 01 2023
(Python)
from fractions import Fraction
def A087704(n):
x, c = Fraction(n, 1), 0
while x<=n or x.denominator > 1:
x = Fraction(5*(x.numerator//x.denominator), 3)
c += 1
return c # Chai Wah Wu, Sep 01 2023
proposed
editing