1,2

Permutation of A002024. - Reinhard Zumkeller, Jan 17 2014

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

After a(8) = 4 the next term is 5 as 3 has already occurred three times.

(Haskell)

a100795 n = a100795_list !! (n-1)

a100795_list = f 0 a002024_list where

f x ws = v : f v (us ++ vs) where (us, v:vs) = span (== x) ws

-- Reinhard Zumkeller, Jan 17 2014

Cf. A061925, A074148, A100798.

Sequence in context: A199323 A156549 A275868 * A045781 A045670 A194960

Adjacent sequences: A100792 A100793 A100794 * A100796 A100797 A100798

easy,nonn

Amarnath Murthy, Dec 05 2004

Corrected and extended by Ray Chandler, Dec 08 2004

approved