A030496 Permutations of 1,2,...,n for n=1,2,3,..., arranged antilexicographically.
1, 2, 1, 1, 2, 3, 2, 1, 3, 1, 2, 2, 3, 1, 2, 1, 3, 1, 3, 2, 1, 2, 3, 4, 3, 2, 1, 4, 3, 1, 2, 4, 2, 3, 1, 4, 2, 1, 3, 4, 1, 3, 2, 4, 1, 2, 3, 3, 4, 2, 1, 3, 4, 1, 2, 3, 2, 4, 1, 3, 2, 1, 4, 3, 1, 4, 2, 3, 1, 2, 4, 2, 4, 3, 1, 2, 4, 1, 3, 2, 3, 4, 1, 2, 3, 1, 4, 2, 1, 4
Offset: 1
Links
- Kerry Mitchell, Rows n = 1..7 of irregular triangle, flattened
Crossrefs
Cf. A030298.
Formula
a(n)=m+1-s(n) where m=MAX{a(k): k<=n} and s=A030298.