OFFSET
1,5
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
PROG
(Haskell)
import Data.Ratio ((%), numerator, denominator, Ratio)
a247462 1 = 1
a247462 n = fst $ until ((== 1) . denominator . snd)
(\(i, x) -> (i + 1, f x)) (0, 1 % n) where
f x = a008472 x' % a001221 x' where x' = numerator x + denominator x
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Sep 17 2014
STATUS
approved