[go: up one dir, main page]

login
Revision History for A329738 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Number of compositions of n whose run-lengths are all equal.
(history; published version)
#9 by Alois P. Heinz at Wed Dec 30 19:44:22 EST 2020
STATUS

proposed

approved

#8 by Andrew Howroyd at Wed Dec 30 19:28:03 EST 2020
STATUS

editing

proposed

#7 by Andrew Howroyd at Wed Dec 30 19:19:28 EST 2020
LINKS

Andrew Howroyd, <a href="/A329738/b329738.txt">Table of n, a(n) for n = 0..1000</a>

PROG

(PARI) seq(n)={my(b=Vec(1/(1 - sum(k=1, n, x^k/(1+x^k) + O(x*x^n)))-1)); concat([1], vector(n, k, sumdiv(k, d, b[d])))} \\ Andrew Howroyd, Dec 30 2020

STATUS

approved

editing

#6 by Susanna Cuyler at Thu Nov 21 10:43:13 EST 2019
STATUS

proposed

approved

#5 by Gus Wiseman at Thu Nov 21 09:48:44 EST 2019
STATUS

editing

proposed

#4 by Gus Wiseman at Thu Nov 21 09:44:31 EST 2019
#3 by Gus Wiseman at Wed Nov 20 15:00:26 EST 2019
NAME

allocated for Gus WisemanNumber of compositions of n whose run-lengths are all equal.

DATA

1, 1, 2, 4, 6, 8, 19, 24, 45, 75, 133, 215, 401, 662, 1177, 2035, 3587, 6190, 10933, 18979, 33339, 58157, 101958, 178046, 312088, 545478, 955321, 1670994, 2925717, 5118560, 8960946, 15680074, 27447350, 48033502, 84076143, 147142496, 257546243, 450748484, 788937192

OFFSET

0,3

COMMENTS

A composition of n is a finite sequence of positive integers with sum n.

FORMULA

a(n) = Sum_{d|n} A003242(d).

a(n) = A329745(n) + A000005(n).

EXAMPLE

The a(1) = 1 through a(6) = 19 compositions:

(1) (2) (3) (4) (5) (6)

(11) (12) (13) (14) (15)

(21) (22) (23) (24)

(111) (31) (32) (33)

(121) (41) (42)

(1111) (131) (51)

(212) (123)

(11111) (132)

(141)

(213)

(222)

(231)

(312)

(321)

(1122)

(1212)

(2121)

(2211)

(111111)

MATHEMATICA

Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], SameQ@@Length/@Split[#]&]], {n, 0, 10}]

CROSSREFS

Compositions with relatively prime run-lengths are A000740.

Compositions with equal multiplicities are A098504.

Compositions with equal differences are A175342.

Compositions with distinct run-lengths are A329739.

Cf. A003242, A008965, A107429, A164707, A238130, A242882, A274174, A329742, A329743, A329745.

KEYWORD

allocated

nonn

AUTHOR

Gus Wiseman, Nov 20 2019

STATUS

approved

editing

#2 by Gus Wiseman at Wed Nov 20 06:06:31 EST 2019
KEYWORD

allocating

allocated

#1 by Gus Wiseman at Wed Nov 20 06:06:31 EST 2019
NAME

allocated for Gus Wiseman

KEYWORD

allocating

STATUS

approved