Arrange the permutations of {1..m} in lexicographic order. Sequence gives indices of permutations of orders 1 or 2.

A066646

Arrange the permutations of {1..m} in lexicographic order. Sequence gives indices of permutations of orders 1 or 2.

Terms

    a(0) =1a(1) =2a(2) =3a(3) =6a(4) =7a(5) =8a(6) =15a(7) =17a(8) =22a(9) =24a(10) =25a(11) =26a(12) =27a(13) =30a(14) =55a(15) =56a(16) =61a(17) =68a(18) =81a(19) =83a(20) =87a(21) =95a(22) =106a(23) =108a(24) =112a(25) =120a(26) =121a(27) =122a(28) =123a(29) =126

External references