A335516 Number of normal patterns contiguously matched by the prime indices of n in increasing or decreasing order, counting multiplicity.
1, 2, 2, 3, 2, 3, 2, 4, 3, 3, 2, 5, 2, 3, 3, 5, 2, 5, 2, 5, 3, 3, 2, 7, 3, 3, 4, 5, 2, 4, 2, 6, 3, 3, 3, 7, 2, 3, 3, 7, 2, 4, 2, 5, 5, 3, 2, 9, 3, 5, 3, 5, 2, 7, 3, 7, 3, 3, 2, 7, 2, 3, 5, 7, 3, 4, 2, 5, 3, 4, 2, 10, 2, 3, 5, 5, 3, 4, 2, 9, 5, 3, 2, 7, 3, 3, 3
Offset: 1
Keywords
Examples
The a(n) patterns for n = 2, 30, 12, 60, 120, 540, 1500: () () () () () () () (1) (1) (1) (1) (1) (1) (1) (12) (11) (11) (11) (11) (11) (123) (12) (12) (12) (12) (12) (112) (112) (111) (111) (111) (123) (112) (112) (112) (1123) (123) (122) (122) (1112) (1112) (123) (1123) (1122) (1123) (11123) (1222) (1222) (11222) (1233) (12223) (11233) (112223) (12333) (112333)
Links
- Wikipedia, Permutation pattern
- Gus Wiseman, Sequences counting and ranking compositions by the patterns they match or avoid.
Crossrefs
The version for standard compositions is A335458.
The not necessarily contiguous version is A335549.
A number's prime indices are given in the rows of A112798.
Contiguous subsequences of standard compositions are A124771.
Contiguous sub-partitions of prime indices are counted by A335519.
Minimal avoided patterns of prime indices are counted by A335550.
Patterns contiguously matched by partitions are counted by A335838.
Comments