OFFSET
0,3
LINKS
PROG
(Haskell)
import Data.List (elemIndex); import Data.Maybe (fromJust)
a245057 = fromJust . (`elemIndex` a249129_list)
(PARI) M=0; #A245057=vecextract(vector(#A249129, n, i=0; for(j=1, #A249129, A249129[j]==n-1&&(i=j)&&break); i||M||M=n; j-1), Str(".."M-1)) \\ M. F. Hasler, Oct 22 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 22 2014
STATUS
approved