Is there a nice formula for the following function?

  • Context: Graduate 
  • Thread starter Thread starter arildno
  • Start date Start date
  • Tags Tags
    Formula Function
Click For Summary

Discussion Overview

The discussion revolves around finding a nice explicit formula for the function S(k,n), which represents the sum of all possible products of k distinct integers from the set of natural numbers ranging from 1 to n. Participants explore various approaches, examples, and related mathematical concepts, including combinatorial interpretations and specific cases.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants propose that S(k,n) can be expressed as a sum over subsets of integers, specifically S(k,n) = ∑(U ⊆ {1, ..., n}, |U| = k) (∏(u ∈ U) u).
  • One participant provides a partial solution for S(2,n) and suggests that a similar approach could be applied to S(3,n), although it would be tedious.
  • Another participant expresses doubt about finding a simpler formula and mentions the possibility of a recursive scheme to compute S(k,n).
  • There is mention of S(n-1,n) being equal to (n!) * H(n), where H(n) is the harmonic sum, indicating a potential connection to known combinatorial functions.
  • One participant identifies S(k,n) with the unsigned Stirling number of the first kind, suggesting that this connection could lead to further insights.
  • A later reply discusses the context of the problem arising from calculating coefficients of the polynomial known as the "falling factorial."

Areas of Agreement / Disagreement

Participants express varying degrees of uncertainty regarding the existence of a simple formula for S(k,n). While some connections to known mathematical concepts are made, no consensus is reached on a definitive formula or approach.

Contextual Notes

Participants note the complexity of deriving a general pattern for S(k,n) and the potential for recursive methods, but there are limitations in terms of the explicitness of the formulas discussed and the assumptions underlying the proposed approaches.

arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
Messages
10,165
Reaction score
138
Hi there!
I am seeking a nice formula for the following function S(k,n), k and n natural numbers, k<=n, where S(k,n) is the sum of all possible products (permutations not allowed) of k distinct integers, where the integer set runs from 1 to n.
Thus, for example, we have the trivial cases of S(1,n)=n(n+1)/2 and S(n,n)=n!

Thanks in advance

EDIT:
I'm not really interested in an implicit recursive method (that's fairly trivial to set up), but an explicit expression of S
 
Last edited:
Mathematics news on Phys.org
arildno said:
Hi there!
I am seeking a nice formula for the following function S(k,n), k and n natural numbers, k<=n, where S(k,n) is the sum of all possible products (permutations not allowed) of k distinct integers, where the integer set runs from 1 to n.
Thus, for example, we have the trivial cases of S(1,n)=n(n+1)/2 and S(n,n)=n!

Thanks in advance

In general I doubt you'll do better than
[tex] S(k,n) = \sum_{\begin{array}{c}U \subset \{1, \dots, n\} \\ |U| = k\end{array}} \left(\prod_{u \in U} u \right)[/tex]
 
pasmith said:
In general I doubt you'll do better than
[tex] S(k,n) = \sum_{\begin{array}{c}U \subset \{1, \dots, n\} \\ |U| = k\end{array}} \left(\prod_{u \in U} u \right)[/tex]
Thanks!
I've thought of that as well, and it won't be any touble for me setting up a recursive scheme to calculate whatever value of S that I want.

I was hoping, though, that some mathematician had figured out a surprisingly simple formula..
 
You can calculate S(2,n) (partial solution given here),

[tex]S(2,n) = \sum_{j=1}^{n-1} j \sum_{r=j+1}^{n} r[/tex]
[tex]\sum_{r=j+1}^{n} r = (n+j)(n-j+1)/2[/tex]

So
[tex]S(2,n) = \sum_{j=1}^{n-1} j(n+j)(n-j+1)/2[/tex]

You can distribute it and get a sum over j, a sum over j2, and a sum over j3 all of which have known formulas. Trying to repeat this exact process (sum over j, sum over r > j, sum over s > r for S(3,n) for example) is doable but tedious. It might be able to be generalized to S(k,n) directly though with extreme cleverness
 
Thank you, Office Shredder!
I did think of such schemes, but didn't want to go through the calculations (I do not trust myself in gleaning a general pattern here).
It would be easier, say computerwise, to set up a plodding algorithm, but I thought that a function S(k,n) OUGHT to occur in lots of combinatorics problems, for example, so that some mathematician had done some serious thinking upon S.
 
Another explicit value will, obviously, be S(n-1,n), which must equal (n!)*H(n), where H(n) is the harmonic sum of the n first numbers (which DOES have a rather nice expression).
But, it is all those in-betweens I wonder about..:frown:
 
If I understand you correctly, your ##S(k,n)## is the (unsigned) Stirling number of the first kind ##\left[n+1 \atop n + 1 - k\right]##. You should be able to find a lot of information about these numbers once you know that they are the Stirling numbers of the first kind.
 
eigenperson said:
If I understand you correctly, your ##S(k,n)## is the (unsigned) Stirling number of the first kind ##\left[n+1 \atop n + 1 - k\right]##. You should be able to find a lot of information about these numbers once you know that they are the Stirling numbers of the first kind.
Hooray!
That seems to be the name of my beast!
Thanks a bundle!
 
As a matter of fact, my conundrum arose from seeking to calculate the coefficients of the polynomial I now have learned the name of, "the falling factorial", x*(x-1)*(x-2)*...(x-n)
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K