A087706 A087705/5.
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
Keywords
Programs
-
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