You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -288,6 +290,12 @@ For background information see
288
290
* J.-P. Allouche, T. Johnson, [Narayana's Cows and Delayed Morphisms](http://recherche.ircam.fr/equipes/repmus/jim96/actes/Allouche.ps).
289
291
* C.M. Wilmott, [From Fibonacci to the mathematics of cows and quantum circuitry](https://iopscience.iop.org/article/10.1088/1742-6596/574/1/012097/pdf).
| by shape |[A178803](https://oeis.org/A178803)|[A133314](https://oeis.org/A133314)|[A327022](https://oeis.org/A327022)|[A327023](https://oeis.org/A327023)|[A327024](https://oeis.org/A327024)|
433
-
| by length |[A318144](https://oeis.org/A318144)|[A131689](https://oeis.org/A131689)|[A241171](https://oeis.org/A241171)|[A278073](https://oeis.org/A278073)|[A278074](https://oeis.org/A278074)|
| row sum |[A101880](https://oeis.org/A101880)|[A000670](https://oeis.org/A000670)|[A094088](https://oeis.org/A094088)|[A243664](https://oeis.org/A243664)|[A243665](https://oeis.org/A243665)|
436
-
| alt row sum |[A260845](https://oeis.org/A260845)|[A033999](https://oeis.org/A033999)|[A028296](https://oeis.org/A028296)|[A002115](https://oeis.org/A002115)|[A211212](https://oeis.org/A211212)|
437
-
| 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)|
438
-
439
435
## Set partitions of m-type
440
436
441
437
For example consider the case n = 4. There are five integer partitions of 4:
@@ -461,6 +457,17 @@ For example consider the case n = 4. There are five integer partitions of 4:
461
457
462
458
See also [A260876](https://oeis.org/A260876).
463
459
460
+
## Ordered set partitions of m-type
461
+
462
+
| type | m = 0 | m = 1 | m = 2 | m = 3 | m = 4 |
463
+
|------|-------|-------|-------|-------|-------|
464
+
| by shape |[A178803](https://oeis.org/A178803)|[A133314](https://oeis.org/A133314)|[A327022](https://oeis.org/A327022)|[A327023](https://oeis.org/A327023)|[A327024](https://oeis.org/A327024)|
465
+
| by length |[A318144](https://oeis.org/A318144)|[A131689](https://oeis.org/A131689)|[A241171](https://oeis.org/A241171)|[A278073](https://oeis.org/A278073)|[A278074](https://oeis.org/A278074)|
| row sum |[A101880](https://oeis.org/A101880)|[A000670](https://oeis.org/A000670)|[A094088](https://oeis.org/A094088)|[A243664](https://oeis.org/A243664)|[A243665](https://oeis.org/A243665)|
468
+
| alt row sum |[A260845](https://oeis.org/A260845)|[A033999](https://oeis.org/A033999)|[A028296](https://oeis.org/A028296)|[A002115](https://oeis.org/A002115)|[A211212](https://oeis.org/A211212)|
469
+
| 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)|
Computes the first n decimal digits of Pi, uses a variant of the spigot algorithm valid as long as the number of digits <= 54900. Based on ideas of A. Sale (1968). Algorithm due to D. Saada (1988) and S. Rabinowitz (1991). Proof due to [Rabinowitz and S. Wagon](https://www.maa.org/sites/default/files/pdf/pubs/amm_supplements/Monthly_Reference_12.pdf) (1995).
a(n) is the sum of the parts of the partition having Heinz number n. We define the Heinz number of a partition p = [p_1, p_2, ..., p_r] as Product_{j=1..r} (p_j-th prime) (concept used by Alois P. Heinz in A215366 as an "encoding" of a partition). For example, for the partition [1, 1, 2, 4, 10] we get 2*2*3*7*29 = 2436. Example: a(33) = 7 because the partition with Heinz number 33 = 3 * 11 is [2,5]. - Emeric Deutsch, May 19 2015
19
+
=#
15
20
16
21
"""
17
22
@@ -27,6 +32,8 @@ The partition coefficients, which are the multinomial coefficients applied to pa
27
32
The partition numbers and the number of partitions of n into k parts are given as PartitionNumber(n) and PartitionNumber(n, k), (V000041, L072233).
28
33
29
34
The sum of all partition coefficients of n is efficiently computed with L005651.
[sum(Multinomial(p) for p ∈IntegerPartitions(n, k)) for k ∈1:n]
288
295
end
289
296
297
+
"""
298
+
Return the signature of partitions in Hindenburg order.
299
+
"""
300
+
functionL115621(n)
301
+
h(p) =sort(collect(values(counter(p))))
302
+
[h(p) for p ∈IntegerPartitions(n)]
303
+
end
304
+
305
+
"""
306
+
Return the types of signatures of partitions of n, ordered firstly by decreasing greatest parts, then decreasing sum of parts, then by increasing number of parts.
307
+
"""
308
+
functionL328917(n)
309
+
n ==0&&return [[0]]
310
+
h(p) =sort(collect(values(counter(p))), rev=true)
311
+
sort(unique([h(p) for p ∈IntegerPartitions(n)]), rev=true)
312
+
end
313
+
314
+
"""
315
+
Return the number of types of signatures of partitions of n.
316
+
"""
317
+
functionV088887(n)
318
+
h(p) =sort(collect(values(counter(p))), rev=true)
319
+
length(unique([h(p) for p ∈IntegerPartitions(n)]))
0 commit comments