Skip to content

Commit c39bab0

Browse files
committed
er
1 parent ac60d89 commit c39bab0

8 files changed

Lines changed: 221 additions & 59 deletions

File tree

Manifest.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ version = "0.4.3"
1919
deps = ["Compat", "CredentialsHandler", "Libdl", "Pkg", "SHA", "TOML", "Test"]
2020
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
2121

22-
[[Combinatorics]]
23-
deps = ["LinearAlgebra", "Polynomials", "Test"]
24-
git-tree-sha1 = "50b3ae4d643dc27eaff69fb6be06ee094d5500c9"
25-
uuid = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
26-
version = "0.7.0"
27-
2822
[[Compat]]
2923
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
3024
git-tree-sha1 = "84aa74986c5b9b898b0d1acaf3258741ee64754f"
@@ -121,12 +115,6 @@ version = "0.3.7"
121115
deps = ["BinaryProvider", "CredentialsHandler", "Dates", "HTTP", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "TOML", "UUIDs"]
122116
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
123117

124-
[[Polynomials]]
125-
deps = ["LinearAlgebra", "SparseArrays", "Test"]
126-
git-tree-sha1 = "62142bd65d3f8aeb2226ec64dd8493349147df94"
127-
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
128-
version = "0.5.2"
129-
130118
[[Printf]]
131119
deps = ["Unicode"]
132120
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ uuid = "b4b868b0-69a7-11e9-2db0-173b4e8e576c"
33
version = "0.2.0"
44

55
[deps]
6-
AbstractAlgebra = "c3fe647b-3220-5bb0-a1ea-a7954cac585d"
76
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
87
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
98
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -15,6 +14,5 @@ Nemo = "2edaba10-b0f1-5616-af89-8c11ac63239a"
1514
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1615

1716
[compat]
18-
AbstractAlgebra = ">= 0.5.4"
1917
Nemo = ">= 0.14.3"
2018
julia = ">= 1.2.0"

docs/src/index.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,9 @@ L013928
14261426
V014107
14271427
```
14281428
```@docs
1429+
L014606
1430+
```
1431+
```@docs
14291432
L015128
14301433
```
14311434
```@docs
@@ -2194,6 +2197,9 @@ V257993
21942197
L260884
21952198
```
21962199
```@docs
2200+
V260884
2201+
```
2202+
```@docs
21972203
L262071
21982204
```
21992205
```@docs
@@ -2281,15 +2287,27 @@ L291452
22812287
L291973
22822288
```
22832289
```@docs
2290+
V291973
2291+
```
2292+
```@docs
22842293
L291974
22852294
```
22862295
```@docs
2296+
V291974
2297+
```
2298+
```@docs
22872299
L291975
22882300
```
22892301
```@docs
2302+
V291975
2303+
```
2304+
```@docs
22902305
L291976
22912306
```
22922307
```@docs
2308+
V291976
2309+
```
2310+
```@docs
22932311
L292222
22942312
```
22952313
```@docs

docs/src/modules.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,18 @@ Return the numbers of partitions of an ``n``-set into ``m`` nonempty subsets.
433433

434434
## Set partitions of m-type
435435

436+
For example consider the case n = 4. There are five integer partitions of 4:
437+
438+
* P = [[4], [3, 1], [2, 2], [2, 1, 1], [1, 1, 1, 1]]. The shapes are m times the parts of the integer partitions: S(m) = [[4m], [3m, m], [2m, 2m], [2m, m, m], [m, m, m, m]].
439+
440+
* In the case m = 1 we look at set partitions of {1, 2, 3, 4} with sizes in [[4], [3, 1], [2, 2], [2, 1, 1], [1, 1, 1, 1]] which gives rise to [1, 4, 3, 6, 1] with sum 15.
441+
442+
* In the case m = 2 we look at set partitions of {1, 2, .., 8} with sizes in [[8], [6, 2], [4, 4], [4, 2, 2], [2, 2, 2, 2]] which gives rise to [1, 28, 35, 210, 105] with sum 379.
443+
444+
* In the case m = 0 we look at set partitions of {} with sizes in [[0], [0, 0], [0, 0], [0, 0, 0], [0, 0, 0, 0]] which gives rise to [1, 1, 1, 1, 1] with sum 5 (because the only partition of the empty set is the set that contains the empty set, thus from the definition T(0,4) = Sum_{S(0)} card({0}) = A000041(4) = 5).
445+
446+
* If n runs through 0, 1, 2,... then the result is an irregular triangle in which the n-th row lists multinomials for partitions of [m*n] which have only parts which are multiples of m. These are the triangles A080575 (m = 1), A257490 (m = 2), A327003 (m = 3), A327004 (m = 4). In the case m = 0 the triangle is A000012 subdivided into rows of length A000041. See the references below how this case integrates into the full picture.
447+
436448
| type | m = 0 | m = 1 | m = 2 | m = 3 | m = 4 |
437449
|-------|-------|-------|-------|-------|-------|
438450
| by shape | [A000012](https://oeis.org/A000012) | [A036040](https://oeis.org/A036040) | [A257490](https://oeis.org/A257490) | [A327003](https://oeis.org/A327003) | [A327004](https://oeis.org/A327004) |

src/IntegerSequences.jl

Lines changed: 87 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright Peter Luschny. License is MIT.
33
# This file includes parts from Combinatorics.jl in modified form.
44

5-
# Version of: UTC 2019-10-23 14:30:02
6-
# d62119a0-f590-11e9-3b8f-97c1dfed0f02
5+
# Version of: UTC 2019-10-24 09:31:01
6+
# 3af04a00-f630-11e9-1ccb-3f8b137e1871
77

88
# Do not edit this file, it is generated from the modules and will be overwritten!
99
# Edit the modules in the src directory and build this file with BuildSequences.jl!
@@ -448,6 +448,7 @@ T011117,
448448
V011371,
449449
L013928,
450450
V014107,
451+
L014606,
451452
L015128,
452453
L023003,
453454
L023004,
@@ -660,7 +661,7 @@ V250283,
660661
V251568,
661662
V254749,
662663
V257993,
663-
L260884,
664+
L260884,V260884,
664665
L262071,
665666
T264428,
666667
T265606,
@@ -682,10 +683,10 @@ V281588,
682683
L290351,V290351,
683684
L291451,
684685
L291452,
685-
L291973,
686-
L291974,
687-
L291975,
688-
L291976,
686+
L291973,V291973,
687+
L291974,V291974,
688+
L291975,V291975,
689+
L291976,V291976,
689690
L292222,
690691
F293654,I293654,L293654,
691692
V295513,
@@ -7895,6 +7896,18 @@ SetNumber(n::Int) = Int(Nemo.bell(n))
78957896
| central | [A053529](https://oeis.org/A053529) | [A210029](https://oeis.org/A210029) | [A281478](https://oeis.org/A281478) | [A281479](https://oeis.org/A281479) | [A281480](https://oeis.org/A281480) |
78967897
78977898
7899+
For example consider the case n = 4. There are five integer partitions of 4:
7900+
7901+
* P = [[4], [3, 1], [2, 2], [2, 1, 1], [1, 1, 1, 1]]. The shapes are m times the parts of the integer partitions: S(m) = [[4m], [3m, m], [2m, 2m], [2m, m, m], [m, m, m, m]].
7902+
7903+
* In the case m = 1 we look at set partitions of {1, 2, 3, 4} with sizes in [[4], [3, 1], [2, 2], [2, 1, 1], [1, 1, 1, 1]] which gives rise to [1, 4, 3, 6, 1] with sum 15.
7904+
7905+
* In the case m = 2 we look at set partitions of {1, 2, .., 8} with sizes in [[8], [6, 2], [4, 4], [4, 2, 2], [2, 2, 2, 2]] which gives rise to [1, 28, 35, 210, 105] with sum 379.
7906+
7907+
* In the case m = 0 we look at set partitions of {} with sizes in [[0], [0, 0], [0, 0], [0, 0, 0], [0, 0, 0, 0]] which gives rise to [1, 1, 1, 1, 1] with sum 5 (because the only partition of the empty set is the set that contains the empty set, thus from the definition T(0,4) = Sum_{S(0)} card({0}) = A000041(4) = 5).
7908+
7909+
* If n runs through 0, 1, 2,... then the result is an irregular triangle in which the n-th row lists multinomials for partitions of [m*n] which have only parts which are multiples of m. These are the triangles A080575 (m = 1), A257490 (m = 2), A327003 (m = 3), A327004 (m = 4). In the case m = 0 the triangle is A000012 subdivided into rows of length A000041. See the references below how this case integrates into the full picture.
7910+
78987911
| type | m = 0 | m = 1 | m = 2 | m = 3 | m = 4 |
78997912
|-------|-------|-------|-------|-------|-------|
79007913
| by shape | [A000012](https://oeis.org/A000012) | [A036040](https://oeis.org/A036040) | [A257490](https://oeis.org/A257490) | [A327003](https://oeis.org/A327003) | [A327004](https://oeis.org/A327004) |
@@ -8288,79 +8301,135 @@ L005046(len) = [V005046(n) for n in 0:len-1]
82888301
82898302
Return the number of set partitions of a 2n-set into even blocks which have even length minus the number of partitions into even blocks which have odd length.
82908303
```julia-repl
8291-
julia> V260884(10)
8292-
10-element Array{Nemo.fmpz,1}:
8293-
??
8304+
julia> V260884(19)
8305+
5097857816569586800024019
82948306
```
82958307
$(SIGNATURES)
82968308
"""
82978309
V260884(n) = sum(AltEgfCoeffs(OrderedSetPolynomials(2, n)))
82988310
"""
82998311
8300-
---
8312+
Return a list of the first ``len`` terms V260884(n).
8313+
```julia-repl
8314+
julia> L260884(10)
8315+
10-element Array{Nemo.fmpz,1}:
8316+
[1, -1, 2, -1, -43, 254, 4157, -70981, -1310398, 40933619]
8317+
```
83018318
$(SIGNATURES)
83028319
"""
83038320
L260884(len) = [V260884(n) for n in 0:len-1]
83048321
"""
83058322
83068323
Return the number of set partitions of type 3.
8324+
```julia-repl
8325+
julia> L291451(10)
8326+
7-element Array{Nemo.fmpz,1}:
8327+
[0, 1, 43690, 7128576, 99379280, 285885600, 190590400]
8328+
```
83078329
$(SIGNATURES)
83088330
"""
83098331
L291451(n) = EgfCoeffs(OrderedSetPolynomials(3, n))
83108332
"""
83118333
8312-
(3*n)! * [z^(3*n)] exp(exp(z)/3 + 2*exp(-z/2)*cos(z*sqrt(3)/2)/3 - 1).
8334+
(3n)! [z^(3n)] exp(exp(z)/3 + 2exp(-z/2)cos(z sqrt(3)/2)/3 - 1).
8335+
```julia-repl
8336+
julia> V291973(9)
8337+
31728742163212641
8338+
```
83138339
$(SIGNATURES)
83148340
"""
83158341
V291973(n) = sum(EgfCoeffs(OrderedSetPolynomials(3, n)))
83168342
"""
83178343
8318-
---
8344+
```julia-repl
8345+
julia> L291973(6)
8346+
6-element Array{Nemo.fmpz,1}:
8347+
[1, 1, 11, 365, 25323, 3068521]
8348+
```
83198349
$(SIGNATURES)
83208350
"""
83218351
L291973(len) = [V291973(n) for n in 0:len-1]
83228352
"""
83238353
8324-
(3*n)! * [z^(3*n)] exp(-(exp(z)/3 + 2*exp(-z/2)*cos(z*sqrt(3)/2)/3 - 1)).
8354+
(3n)! [z^(3n)] exp(-(exp(z)/3 + 2exp(-z/2) cos(z sqrt(3)/2)/3 - 1)).
8355+
```julia-repl
8356+
julia> V291974(9)
8357+
-3166484321001
8358+
```
83258359
$(SIGNATURES)
83268360
"""
83278361
V291974(n) = sum(AltEgfCoeffs(OrderedSetPolynomials(3, n)))
83288362
"""
83298363
8330-
---
8364+
```julia-repl
8365+
julia> L291974(6)
8366+
6-element Array{Nemo.fmpz,1}:
8367+
[1, -1, 9, -197, 6841, -254801]
8368+
```
83318369
$(SIGNATURES)
83328370
"""
83338371
L291974(len) = [V291974(n) for n in 0:len-1]
83348372
"""
83358373
8336-
exp(x*(cos(z) + cosh(z) - 2)/2)
8374+
exp(x (cos(z) + cosh(z) - 2)/2)
8375+
```julia-repl
8376+
L291452(6)
8377+
7-element Array{Nemo.fmpz,1}:
8378+
[0, 1, 2098175, 2941884000, 181262956875, 1932541986375, 4509264634875]
8379+
```
83378380
$(SIGNATURES)
83388381
"""
83398382
L291452(n) = EgfCoeffs(OrderedSetPolynomials(4, n))
83408383
"""
83418384
83428385
Return ordered the number of set partitions of type 3.
8386+
```julia-repl
8387+
julia> V291975(9)
8388+
926848347928901638652131
8389+
```
83438390
$(SIGNATURES)
83448391
"""
83458392
V291975(n) = sum(EgfCoeffs(OrderedSetPolynomials(4, n)))
83468393
"""
83478394
8348-
---
8395+
```julia-repl
8396+
L291975(5)
8397+
5-element Array{Nemo.fmpz,1}:
8398+
[1, 1, 36, 6271, 3086331]
8399+
```
83498400
$(SIGNATURES)
83508401
"""
83518402
L291975(len) = [V291975(n) for n in 0:len-1]
83528403
"""
83538404
83548405
Return ordered the number of set partitions of type 4.
8406+
```julia-repl
8407+
julia> V291976(7)
8408+
-6440372006517541
8409+
```
83558410
$(SIGNATURES)
83568411
"""
83578412
V291976(n) = sum(AltEgfCoeffs(OrderedSetPolynomials(4, n)))
83588413
"""
83598414
8360-
---
8415+
```julia-repl
8416+
L291976(7)
8417+
7-element Array{Nemo.fmpz,1}:
8418+
[ 1, -1, 34, -5281, 2185429, -1854147586, 2755045819549]
8419+
```
83618420
$(SIGNATURES)
83628421
"""
83638422
L291976(len) = [V291976(n) for n in 0:len-1]
8423+
"""
8424+
8425+
```julia-repl
8426+
L014606(7)
8427+
7-element Array{Nemo.fmpz,1}:
8428+
[1, 1, 20, 1680, 369600, 168168000, 137225088000]
8429+
```
8430+
$(SIGNATURES)
8431+
"""
8432+
L014606(len) = Diagonal(n -> OrderedSetPolynomials(3, n), len)
83648433
# *** StirlingLahNumbers.jl ****************
83658434
"""
83668435

0 commit comments

Comments
 (0)