login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A087706
A087705/5.
10
1, 1, 2, 7, 2, 6, 7, 3, 181, 6, 4, 7, 21, 5, 181, 42, 6, 17, 11, 7, 12, 21, 8, 482, 181, 9, 42, 16, 10, 17, 81, 11, 31, 32, 12, 56, 21, 13, 22, 482, 14, 181, 67, 15, 42, 26, 16, 27, 46, 17, 132, 81, 18, 232, 31, 19, 32, 417, 20
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
Sequence in context: A332501 A365524 A157513 * A102447 A151869 A262083
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 29 2003
STATUS
approved