OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..890
EXAMPLE
Cf. A232361.
PROG
(Haskell)
a232359 n = a232359_list !! (n-1)
(a232359_list, a232361_list) = unzip $
f 2 (tail a232221_list) $ zipWith (-) (tail a232221_list) a232221_list
where f x (y:ys) (u:ws@(v:_))
| u > 0 && v < 0 = (x, y) : f (x + 1) ys ws
| otherwise = f (x + 1) ys ws
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 24 2013
STATUS
approved