login

Revision History for A337507

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Number of length-n sequences covering an initial interval of positive integers with exactly two maximal anti-runs, or with one pair of adjacent equal parts.
(history; published version)
#10 by Susanna Cuyler at Thu Sep 17 20:35:06 EDT 2020
STATUS

proposed

approved

#9 by Gus Wiseman at Mon Sep 07 03:21:47 EDT 2020
STATUS

editing

proposed

#8 by Gus Wiseman at Mon Sep 07 03:20:54 EDT 2020
NAME

Number of length-n sequences covering an initial interval of positive integers with exactly two maximal anti-runs, or with one pair of adjacent equal parts.

#7 by Gus Wiseman at Mon Sep 07 03:08:23 EDT 2020
#6 by Gus Wiseman at Mon Sep 07 03:02:27 EDT 2020
CROSSREFS

A106356 counts compositions by number of maximal anti-runs.

Cf. A019472, A052841, A060223, A106351, A106356, A269134, A325535, A335461, A337505, A337564.

#5 by Gus Wiseman at Mon Sep 07 02:53:30 EDT 2020
NAME

Number of length-n sequences of length n covering an initial interval of positive integers with 2 two maximal anti-runs, or with 1 one pair of adjacent equal parts.

COMMENTS

An anti-run is a sequence with no adjacent equal parts. For example, the maximal anti-runs in (3,1,1,2,2,2,1) are ((3,1), (1,2), (2), (2,1)). In general, there is one more maximal anti-run than the number of pairs of adjacent equal parts.

#4 by Gus Wiseman at Sun Sep 06 01:33:38 EDT 2020
KEYWORD

nonn,more,changed

#3 by Gus Wiseman at Sun Sep 06 01:33:11 EDT 2020
DATA

0, 0, 1, 4, 24, 176, 1540, 15672, 181916, 2372512, 34348932, 546674120, 9486840748, 178285201008, 3607174453844, 78177409231768, 1806934004612220, 44367502983673664, 1153334584544496676, 31643148872573831016

FORMULA

a(n > 0) = (n - 1)*A005649(n - 2).

#2 by Gus Wiseman at Sun Sep 06 01:20:30 EDT 2020
NAME

allocated for Gus WisemanNumber of sequences of length n covering an initial interval of positive integers with 2 maximal anti-runs, or with 1 pair of adjacent equal parts.

DATA

0, 0, 1, 4, 24, 176, 1540, 15672, 181916, 2372512

OFFSET

0,4

COMMENTS

An anti-run is a sequence with no adjacent equal parts. For example, the maximal anti-runs in (3,1,1,2,2,2,1) are (3,1), (1,2), (2), (2,1). In general, there is one more maximal anti-run than the number of pairs of adjacent equal parts.

EXAMPLE

The a(4) = 24 sequences:

(2,1,2,2) (2,1,3,3) (3,1,2,2)

(2,2,1,2) (2,3,3,1) (3,2,2,1)

(1,2,2,1) (3,3,1,2) (1,1,2,3)

(2,1,1,2) (3,3,2,1) (1,1,3,2)

(1,1,2,1) (1,2,2,3) (2,1,1,3)

(1,2,1,1) (1,3,2,2) (2,3,1,1)

(1,2,3,3) (2,2,1,3) (3,1,1,2)

(1,3,3,2) (2,2,3,1) (3,2,1,1)

MATHEMATICA

kv=2;

allnorm[n_]:=If[n<=0, {{}}, Function[s, Array[Count[s, y_/; y<=#]+1&, n]]/@Subsets[Range[n-1]+1]];

Table[Length[Select[Join@@Permutations/@allnorm[n], Length[Split[#, UnsameQ]]==kv&]], {n, 0, 6}]

CROSSREFS

A002133 is the version for runs in partitions.

A106357 is the version for compositions.

A337506 has this as column k = 2.

A000670 counts patterns.

A005649 counts anti-run patterns.

A003242 counts anti-run compositions.

A124762 counts adjacent equal terms in standard compositions.

A124767 counts maximal runs in standard compositions.

A238130/A238279/A333755 count maximal runs in compositions.

A333381 counts maximal anti-runs in standard compositions.

A333382 counts adjacent unequal terms in standard compositions.

A333489 ranks anti-run compositions.

A333769 gives maximal run lengths in standard compositions.

A337565 gives maximal anti-run lengths in standard compositions.

Cf. A019472, A052841, A060223, A106351, A106356, A269134, A325535, A335461, A337505, A337564.

KEYWORD

allocated

nonn,more

AUTHOR

Gus Wiseman, Sep 06 2020

STATUS

approved

editing

#1 by Gus Wiseman at Sun Aug 30 00:58:07 EDT 2020
NAME

allocated for Gus Wiseman

KEYWORD

allocated

STATUS

approved