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