OFFSET
1,3
LINKS
PROG
(Haskell)
a088230 n = a088230_list !! (n-1)
a088230_list = 0 : f [1..] [0] where
f (x:xs) ys@(y:_)
| x <= y && (length $ filter (== z) ys) <= 1 = z : f xs (z : ys)
| otherwise = (x + y) : f xs ((x + y) : ys) where z = y - x
-- Reinhard Zumkeller, May 08 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 03 2003
STATUS
approved