OFFSET
1,10
COMMENTS
a(A216183(n)) = 0. - Reinhard Zumkeller, Mar 11 2013
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
14/1 -> 14/5 -> 70/9 -> 630/15 = 42 so a(14)=42.
57/1 -> 19/4 -> 76/13 -> 247/4 -> 247/4 -> ... so a(57) = 0.
PROG
(Haskell)
import Data.Ratio ((%), numerator, denominator)
a059514 n = f [n % 1] where
f xs@(x:_)
| denominator y == 1 = numerator y
| y `elem` xs = 0
| otherwise = f (y : xs)
where y = (numerator x * denominator x) %
(a007953 (numerator x) + a007953 (denominator x) - 1)
-- Reinhard Zumkeller, Mar 11 2013
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Floor van Lamoen, Jan 22 2001
EXTENSIONS
Corrected and extended by Naohiro Nomoto, Jul 20 2001
STATUS
approved