OFFSET
1,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..2562, all records < 10^8
PROG
(Haskell)
a245394 n = a245394_list !! (n-1)
(a245394_list, a245395_list) = unzip $ f [0..] a125717_list (-1) where
f (x:xs) (y:ys) r = if y > r then (y, x) : f xs ys y else f xs ys r
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 21 2014
STATUS
approved