login
A087709
A087708/5.
8
4, 4, 1, 4, 3, 2, 4, 8, 3, 354, 18, 4, 58, 8, 5, 9, 354, 6, 18, 19, 7, 58, 13, 8, 14, 69, 9, 44, 354, 10, 29, 18, 11, 19, 33, 12, 58, 3569, 13, 104, 23, 14, 24, 69, 15, 43, 44, 16, 354, 28, 17, 29, 83, 18, 143, 243, 19, 54, 33, 20, 34, 58, 21, 3569, 169, 22, 104, 38, 23, 39, 308, 24
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
Sequence in context: A023401 A055180 A030788 * A106642 A327855 A213056
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 29 2003
STATUS
approved