1,2
a(5) = 114 because all but the 6 permutations 23451, 24351, 32451, 34251, 42351, 43251 on 5 letters become 12345 after at most 3 passes through the stack sorter.
Cf. A000139.
Sequence in context: A152329 A192088 A054872 * A171448 A068199 A189846
Adjacent sequences: A134661 A134662 A134663 * A134665 A134666 A134667
hard,nonn
Eric S Rowland (erowland(AT)math.rutgers.edu), Jan 25 2008