Skip to main content
Log in

On restricted partitions of numbers

  • Original Paper
  • Published:
Applicable Algebra in Engineering, Communication and Computing Aims and scope

Abstract

This paper finds new quasi-polynomials over \({{\mathbb {Z}}}\) for the number \(p_k(n)\) of partitions of n with parts at most k. Methods throughout are elementary. We derive a small number of polynomials (e.g., one for \(k=3\), two for \(k = 4\) or 5, six for \(k=6\)) that, after addition of appropriate constant terms, take the value \(p_k(n)\). For example, for \(0\le r < 6\) and for all \(q \ge 0\), \(p_3(6q+r) = p_3(r)+\pi _0(q,r)\), a polynomial of total degree 2 in q and r. In general there are \(M_{\lfloor k/2 \rfloor } =\) lcm\(\{1,2,\ldots ,\lfloor k/2 \rfloor \}\) such polynomials. In two variables q and s, they take the form \(\sum a_{i,j}{q \atopwithdelims ()i}{s \atopwithdelims ()j}\) with \(a_{i,j} \in {{\mathbb {Z}}}\), which we call the proper form for an integer-valued polynomial. They constitute a quasi-polynomial of period \(M_{\lfloor k/2 \rfloor }\) for the sequence \((p_k(n)-p_k(r))\) with \(n \equiv r \pmod {M_k}\). For each k the terms of highest total degree are the same in all the polynomials and have coefficients dependent only on k. A second theorem, combining partial fractions and the above approach, finds hybrid polynomials over \({{\mathbb {Q}}}\) for \(p_k(n)\) that are easier to determine than those above. We compare our results to those of Cayley, MacMahon, and Arkin, whose classical results, as recast here, stand up well. We also discuss recent results of Munagi and conclude that circulators in some form are inevitable. At \(k=6\) we find serious errors in Sylvester’s calculation of his “waves.” Sylvester JJ (Q J Pure Appl Math 1:141–152, 1855). The results are generalized to the (not very different) problem called “making change,” where significant improvements to existing approaches are found. We find an infinitude of new congruences for \(p_k(n)\) for \(k= 3, 4\), and one new one for \(k=5\). Reduced modulo m the periodic sequence \((p_k(n))\) is investigated for periodicity and zeros: we find, from scratch, a simple proof of a known result in a special case.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Notes

  1. Later we’ll place these polynomials in the context of quasi-polynomials.

  2. Briefly reviewed in the Appendix

  3. Priority for the result, however, is DeMorgan’s [13].

  4. DeMorgan’s proof is in [13]. Another proof is in [26, p. 130].

  5. All “large numbers” stated as values of \(p_k(n)\) in the paper are taken from or verified against a table of \(p_k(n)\) computed using the recurrence (20).

  6. On the ordering: each block of d ordered pairs (ij) with \(1 \le i\) and \(i+j = d\), corresponding to all the terms of total degree d, may be ordered in any way. The only essential is to order these blocks linearly by d.

  7. Department of strange coincidences: 17/72 is the coefficient of \(1/(1-x)\) in \(P_4(x)\) as partial fractions; 25/144 is the coefficient of \(n+2\) in the nearest-integer formula for \(p_4(n)\) in [19, p. 3].

  8. Again, for \(t=1\): 11/64 is the coefficient of \(n+2\) in the nearest-integer formula for \(p_5(n)\) in [19, p. 3].

  9. Calculated as decimals; equations were then multiplied by 4320 = lcm{432, 96, 6!}.

  10. In [22] it is written that Munagi has computed exact formulas for \(p_k(n)\) for k up to 18 in his PhD thesis, but it is apparently not published.

  11. E.g., \(a = 1350/1036800.\)

  12. Presumably the same results would hold for Cayley polynomials if we had Cayley’s workout for \(k= 6,7,8\).

  13. Actually Bell proved it in the slightly more general case we’re calling, in II.E, “Making Change”.

  14. I do recognize that [11] is focused on a different problem than the one Bell posed.

  15. For a proof of the converse, see [21].

  16. Sylvester writes “Mr. Cayley was led to the use of prime circulators from a perception of their affording the best analytical means of giving determinateness to the representation of the results; in my method they offer themselves spontaneously, and cannot be rejected.”

  17. These Victorian gentlemen almost never cited works of others or themselves. In [26] there is no citation to [25], which I found thanks only to Cayley; it was his one citation in [12]. In [26] is one citation, to Cayley: Sylvester corrects him on a point. They were a small club, publishing letters to each other.

  18. After setting the problem in terms of partial fractions, Newman writes “For obvious reasons we [omit] the remaining details.” He suggests readers complete a similar example with more “reasonable” numbers.

  19. A contribution of error-correcting codes to mathematics: Nijenhuis and Wilf [20] base their proof of minimum period on a 1968 result of Berlekamp [9].

  20. Also note that the k zeros at the top of the period are even more obvious: they are the initial k zeros in \(\{p_k^*(n)\}\).

References

  1. Ahlgren, S., Ono, K.: Addition and counting: the arithmetic of partitions. Not. Am. Math. Soc. 48(9), 978–984 (2001)

    MathSciNet  MATH  Google Scholar 

  2. Andrews, G.E.: The Theory of Partitions. Addison-Wesley, London (1976)

    MATH  Google Scholar 

  3. Andrews, G.E.: Partitions: at the interface of q-series and modular forms. Ramanujan J. 7, 385–400 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  4. Arkin, J.: Researches on partitions. Duke Math. J. 37, 403–409 (1970)

    Article  MathSciNet  MATH  Google Scholar 

  5. Auluck, F.C., Kothari, D.S.: Statistical mechanics and the partitions of numbers. Math. Proc. Cambridge Philos. Soc. 42(03), 272–277 (1946). https://doi.org/10.1017/S0305004100023033

    Article  MathSciNet  MATH  Google Scholar 

  6. Bak, J., Newman, D.J.: Complex: Analysis, 3rd edn., pp. 279–282. Springer, Berlin (2010)

    Book  MATH  Google Scholar 

  7. Bateman, P., Kalb, J., Stegner, A.: Problem 10797 and solution. Amer. Math. Monthly 109(4), 393–394 (2002)

    Article  Google Scholar 

  8. Bell, E.T.: Interpolation of denumerants and Lambert series. Am. J. Math. 65, 382–386 (1943)

    Article  MATH  Google Scholar 

  9. Berlekamp, E.R.: Algebraic Coding Theory, p. 151. McGraw-Hill, New York (1968)

    MATH  Google Scholar 

  10. Cahen, P.-J., Chabert, J.-L.: What you should know about integer-valued polynomials. Amer. Math. Monthly 123(4), 311–337 (2016)

    Article  MathSciNet  MATH  Google Scholar 

  11. Castillo, A., Flores, S., Hernandez, A., Kronholm, B., Larsen, A., Martinez, A.: Quasipolynomials and maximal coefficients of Gaussian polynomials. Ann. Comb. 23, 589–611 (2019)

    Article  MathSciNet  MATH  Google Scholar 

  12. Cayley, A.: Researches on the Partition of Numbers. Collect. Math. Pap. 2, 235–249 (1898)

    Google Scholar 

  13. DeMorgan, A.: On a new form of difference equation. Cambridge Math. J. 4, 87–90 (1843)

    Google Scholar 

  14. Graham, R., Knuth, D., Patashnik, O.: Concrete Mathematics, 2nd edn. Addison-Wesley, Reading (1994)

    MATH  Google Scholar 

  15. Kronholm, B.: Generalized congruence properties of the restricted partition function \(p(n, m)\). Ramanujan J. 30, 425–436 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  16. Kwong, Y.H.: Minimum periods of partition functions modulo \(M\). Utilitas Mathematica 35, 3–8 (1989)

    MathSciNet  MATH  Google Scholar 

  17. MacMahon, P.A.: Combinatory Analysis, vol. 2. Cambridge University Press, Cambridge (1960)

    MATH  Google Scholar 

  18. Manschot, Jan: Partition Functions for Supersymmetric Black Holes. Amsterdam University Press, Amsterdam (2008)

    Book  Google Scholar 

  19. Munagi, A.: Computation of \(q\)-partial fractions. Electron. J. Comb. Number Theory 7, 25 (2007)

    MathSciNet  MATH  Google Scholar 

  20. Nijenhuis, A., Wilf, H.S.: Periodicites of partition functions and Stirling numbers modulo \(p\). J. Number Theory 25, 308–312 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  21. Cormac O’Sullivan, Partitions and Sylvester waves, arXiv:1702.03611v2 [math.NT] 30 March 2018 (pp. 31)

  22. Sills, A.V., Zeilberger, D.: Formulae for the number of partitions of \(n\) into at most \(m\) parts (using the quasi-polynomial ansatz). Adv. Appl. Math. 48(5), 640645 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  23. Stanley, R.P.: Enumerative Combinatorics, vol. I, 2ed, edn. Cambridge University Press, Cambridge (2012)

    MATH  Google Scholar 

  24. Stanley, R.P.: Combinatorics and Commutative Algebra. Birkhauser, Boston (1983)

    Book  MATH  Google Scholar 

  25. Sylvester, J.J.: On the partition of numbers. Q. J. Pure Appl. Math. 1, 141–152 (1855)

    Google Scholar 

  26. Sylvester, J.J.: On subinvariants …… partitions. Am. J. Math. 5, 79–136 (1882)

    Article  Google Scholar 

Download references

Acknowledgements

I thank both referees for their careful readings and constructive suggestions. Any errors are my responsibility, of course. For sharing their papers I thank Brandt Kronholm and A. Munagi. And I thank Hugues Randriam for introducing me to IV polynomials, and Ivelisse Rubio for strong support and good advice. Finally, I am grateful to the late Francis N. Castro for valuable advice and encouragement.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to H. F. Mattson Jr..

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

1.1 A. Partial fractions

Here is a brief classical account of partial fractions.

Theorem 4

Let K be a field and, for \(m \in {{{\mathbb {Z}}}}_{>0}\), let \(f_1(x),\ldots ,f_m(x) \in K[x]\) be relatively prime in pairs. Let \(N(x) \in K[x]\) be relatively prime to, and have degree less than that of, \(f_1(x)\cdots f_m(x)\).

Then there are uniquely determined polynomials \(a_1(x), \ldots , a_m(x) \in K[x]\) such that

$$\begin{aligned} \frac{N(x)}{f_1(x)\cdots f_m(x)} = \sum _{1\le j \le m}\frac{a_j(x)}{f_j(x)}, \end{aligned}$$
(67)

and for each j the degree of \(a_j(x)\) is less than that of \(f_j(x)\).

From now on we’ll denote the degree of a polynomial f(x) by \(\partial f(x)\).

Proof

We sketch the proof of the theorem: use induction on m. There is nothing to prove for \(m = 1\). Let \(m=2\). There are \(a(x), b(x) \in K[x]\) such that

$$\begin{aligned} a(x)f_1(x) + b(x)f_2(x) = N(x). \end{aligned}$$
(68)

In (68) replace a(x) [b(x)] by its remainder r(x) [\(r'(x)\)] on division by \(f_2(x)\) [\(f_1(x)\)]. The result (if we drop the “(x)” for a moment) is

$$\begin{aligned} rf_1 + r'f_2 -N \equiv 0 \pmod {f_1f_2}; \end{aligned}$$
(69)

a degree argument shows the congruence is equality, and shows the uniqueness. Divide this equality (69) by \(f_1f_2\) to get the desired result.

The proof for \(m=2\) is in essence the proof of the inductive step. \(\square \)

Corollary 10

For \(e_1,\ldots ,e_m \in {{{\mathbb {Z}}}}_{>0}\), let \(D(x):= f_1(x)^{e_1}\cdots f_m(x)^{e_m}\). Let \(N(x) \in K[x]\) be prime to D(x) and suppose \(\partial N(x) < \partial D(x)\). Then for \(j = 1,\ldots , m\) there are uniquely determined \(b_j(x) \in K[x]\) such that \(\partial b_j(x) < e_j\partial f_j(x)\) and

$$\begin{aligned} \frac{N(x)}{D(x)} = \sum _{1\le j \le m}\frac{b_j(x)}{f_j(x)^{e_j}}, \end{aligned}$$
(70)

Moreover, each numerator \(b_j(x)\) may be expanded “in the base \(f_j(x)\)” to yield

$$\begin{aligned} \frac{N(x)}{D(x)} = \sum _{1\le j \le m}\sum _{1 \le i\le e_j}\frac{c_{ji}(x)}{f_j(x)^i}, \end{aligned}$$
(71)

in which the uniquely determined \(c_{ji}(x) \in K[x]\) satisfy \(\partial c_{ji}(x) < \partial f_j(x)\).

Math packages for partial fractions typically return equation (71).

Finally, we specialize the Corollary to the case when, for distinct nonzero \(\rho _1,\ldots , \rho _m \in K, f_1(x) = 1 - \rho _1x, \ldots , f_m(x) = 1 - \rho _mx\). This case may arise in the study of generating functions, in which one seeks a formula for the coefficient of \(x^n\) in the power-series expansion of

$$\begin{aligned} G(x) := N(x)/D(x) \end{aligned}$$
(72)

(notation: [\(x^n\)]G(x)). We’ll see that [\(x^n\)]G(x) is a sum of m polynomials in n each multiplied by one of the \(\rho \)s to the power n.

The \(c_{ji}\) in (71) are now constants in K. We use the binomial theorem to write the general term in (71) as

$$\begin{aligned} \frac{c_{ji}}{(1-\rho _j x)^i}=c_{ji}\sum _{n\ge 0}{n+i-1\atopwithdelims ()i-1}{\rho _j}^nx^n. \end{aligned}$$
(73)

Thus

$$\begin{aligned} {[}x^n]\frac{c_{ji}}{(1-\rho _j x)^i} = c_{ji}{n+i-1 \atopwithdelims ()i-1}{\rho _j}^n. \end{aligned}$$
(74)

Summed over i this becomes

$$\begin{aligned} \left\{ c_{j1}+c_{j2}n + \cdots + c_{j,e_j}{n+e_j-1 \atopwithdelims ()e_j-1}\right\} {\rho _j} \end{aligned}$$
(75)

In braces is a polynomial in n of degree \(e_j-1\); call it \(h_j(n)\). Thus

$$\begin{aligned} {[}x^n]G(x) = \sum _{1\le j\le m}h_j(n){\rho _j}^n; \end{aligned}$$
(76)

moreover, the leading coefficient of \(h_j(n)\), the coefficient of \(n^{e_j-1}\), is

$$\begin{aligned} \frac{c_{j,e_j}}{(e_j - 1)!} = \frac{N(1/\rho _j)}{(e_j-1)!}\prod _{i\ne j}(1-\rho _i/\rho _j)^{-e_i}, \end{aligned}$$
(77)

which follows from (72) on multiplication by \((1 - \rho _jx)^{e_j}\) and the substitution \(x := 1/\rho _j\).

Three other treatments ([6, pp. 279-280], [14, p. 340], [24, pp. 1-2]) of partial fractions differ from the classical treatment, which still stands up well, though that in [24] is interesting.

1.2 B Integer-valued polynomials

Definition

A polynomial over \({{\mathbb {Q}}}\) in n variables \(x_1,\ldots ,x_n\) is an integer-valued polynomial iff it maps \({{{\mathbb {Z}}}_{\ge 0}}^n\) to \({{{\mathbb {Z}}}}\).

Proposition 13

Every integer-valued polynomial \(W(x_1,\ldots ,x_n)\) is uniquely a sum of terms

$$\begin{aligned} a_\mathbf{k} {x_1 \atopwithdelims ()k_1}{x_2 \atopwithdelims ()k_2}\cdots {x_n \atopwithdelims ()k_n} \end{aligned}$$

for various \(\mathbf{k} := (k_1,\ldots ,k_n) \in {{{\mathbb {Z}}}_{\ge 0}}^n\) in which \(a_\mathbf{k}\) is an integer.

Proof

Let \(m \ge 0\). The space of polynomials in y of degree at most m over \({{\mathbb {Q}}}\) has the two bases \(B_1 := \{1,y,\ldots ,y^m\}\) and

$$\begin{aligned} B_2 := \{1, {y \atopwithdelims ()1}, {y \atopwithdelims ()2}, \ldots , {y \atopwithdelims ()m}\}. \end{aligned}$$

Thus every element in \(B_1\) is a linear combination of elements of \(B_2\) with coefficients from \({{\mathbb {Q}}}\).

Let \(\mathbf{x}\) stand for \((x_1,\ldots ,x_n)\), and for \(\mathbf{k}\) as above, let

$$\begin{aligned} {\mathbf{x} \atopwithdelims ()\mathbf{k}} := {x_1 \atopwithdelims ()k_1}\cdots {x_n \atopwithdelims ()k_n}. \end{aligned}$$

Our polynomial is now expressible as

$$\begin{aligned} W(\mathbf{x}) = \sum _\mathbf{k}a_\mathbf{k}{\mathbf{x} \atopwithdelims ()\mathbf{k}}, \end{aligned}$$
(78)

the sum taken over various \(\mathbf{k} \in {{{\mathbb {Z}}}_{\ge 0}}^n\). The coefficients are in \({{\mathbb {Q}}}\). We now show that those coefficients are integers.

For each \(\mathbf{k}\) define its height to be \(k_1 + \cdots + k_n\). Note that if \(\mathbf{k_1}\) and \(\mathbf{k_2}\) have the same height but are not equal, then for each one there is a coordinate in which it is greater than the other.

We start with a \(\mathbf{k}= (k_1,\ldots ,k_n)\) of least height in (78). Set \(\mathbf{x} = \mathbf{k}\) in (78). The result: \(W(\mathbf{k})=a_\mathbf{k}\), since all other terms are 0 (each involves a factor \({u \atopwithdelims ()v}\) in which \(0 \le u < v\)). We proceed thus through all the coefficients, always choosing next a \(\mathbf{k}\) of least remaining height. Integrity is forced on us since each of the as is determined by the prior results and a value of W. Uniqueness is forced by the facts about bases of vector spaces: the polynomial W, given in the variables \(x_1,\ldots ,x_n\), determines uniquely the coefficients in (78). \(\square \)

Corollary 11

Every integer-valued polynomial in n variables maps \({{\mathbb {Z}}}^n\) to \({{\mathbb {Z}}}\).

In this paper we call a formula for an integer-valued polynomial proper if it is in the form of Eq. (78).

Deeper study of these polynomials appears in [10].

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Mattson, H.F. On restricted partitions of numbers. AAECC 34, 751–791 (2023). https://doi.org/10.1007/s00200-021-00524-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00200-021-00524-5

Keywords

Navigation