Counting Subsets of A with k Elements and Sum of r

Click For Summary

Discussion Overview

The discussion revolves around the problem of counting subsets of a set A={1,2,...,n} that contain k elements and have a specific sum r. Participants explore various methods and resources to approach this combinatorial problem, including generating functions and binomial coefficients.

Discussion Character

  • Exploratory
  • Mathematical reasoning

Main Points Raised

  • One participant requests resources for studying the problem of counting k-element subsets of A that sum to r.
  • Another participant suggests a link to a Wikipedia page on partitions in number theory, potentially as a relevant resource.
  • A different participant proposes that the solution can be expressed using the binomial coefficient (r-1) C (k-1), although the context of this claim is not fully elaborated.
  • Another response introduces the concept of generating functions, providing a formula for the generating function related to the problem, along with links to additional mathematical articles.

Areas of Agreement / Disagreement

The discussion does not reach a consensus on a single method or solution. Multiple approaches are presented, and participants offer differing perspectives on how to tackle the problem.

Contextual Notes

The discussion includes various mathematical expressions and references to external resources, but does not clarify the assumptions or conditions under which the proposed solutions hold. The exact applicability of the binomial coefficient and generating functions to the specific problem remains uncertain.

soroush1358
Messages
3
Reaction score
0
Dear Friends,

I have a question and would be pleased if you help me by suggesting a paper or book to study.

Let A={1,2,...,n}. We consider all the subsets with k elements. How many of these sets have a sum of r ?
e.g.
for n=6, k=3, r=10

{1,3,6}

{1,4,5}

{2,3,5}
Hense the solution in this case is 3.

Thanks for your kind.
 
Physics news on Phys.org
Maybe this helps: http://en.wikipedia.org/wiki/Partition_(number_theory)"
 
Last edited by a moderator:
It's the binomial coefficient (r-1) C (k-1).
 
Generating Function of your number

soroush1358, I have answer your question in this post: http://www.voofie.com/content/144/sum-of-subsets-with-k-elements-having-a-total-sum-of-r/" .

You can read more Mathematics related articles in http://www.voofie.com/concept/Mathematics/" .

In short, the generating function of your number is:

[tex]G_n(x,y) &= (1+x y)(1+x^2 y)(1+x^3 y)...(1+x^n y) \\ &= \prod_{r=1}^n (1+x^r y) \end{align*}[/tex]
 
Last edited by a moderator:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 102 ·
4
Replies
102
Views
18K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
1
Views
2K
  • · Replies 26 ·
Replies
26
Views
2K