OFFSET
2,3
PROG
(Python)
from fractions import Fraction
def A087706(n):
x = Fraction(n, 1)
while x.denominator > 1 or x<=n:
x = Fraction(5*x.__floor__(), 3)
return int(x)//5 # Chai Wah Wu, Sep 01 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 29 2003
STATUS
approved