Question

In: Statistics and Probability

Let us choose seven arbitrary distinct positive integers, not exceeding 24. Show that there will be...

Let us choose seven arbitrary distinct positive integers, not exceeding 24. Show that there will be at least two subsets chosen from these seven numbers with equal total sums. (Keep in mind that sets, and hence subsets, have no repeated elements.) Hint: How many subsets can you form altogether? What is the largest total sum of such a subset?

Solutions

Expert Solution

There are 7 distinct integers. The power set (i.e set of all possible subsets) has cardinality 2^n, for a set of size n. Thus, with 7 integers (removing the empty set), we can form 2^7-1 possible subset combinations. Thus there are 127 subsets. The maximum sum can be obtained if we choose the largest 7 numbers. Thus the largest possible sum is: 24+23+22+21+20+19+18=147.

However, now note that if we can form this sum as a total sum of a subset, then it must be the case that we have chosen these particular numbers: 18,...,24. Thus, we can't form the sum 1. Similarly if we can have a subsets summing to 1, then it must be the singleton 1 and hence e cannot form the sum 147 as total of a subset.

Thus, the subsets can't take at least one out of the following sums: 1,...,147. Hence, there are at most 146 possible sums and 147 distinct subsets. By pegion hole principle, at least two subsets must have the same sum.


Related Solutions

Let A[1..n] be an array of distinct positive integers, and let t be a positive integer....
Let A[1..n] be an array of distinct positive integers, and let t be a positive integer. (a) Assuming that A is sorted, show that in O(n) time it can be decided if A contains two distinct elements x and y such that x + y = t. (b) Use part (a) to show that the following problem, re- ferred to as the 3-Sum problem, can be solved in O(n2) time: 3-Sum Given an array A[1..n] of distinct positive integers, and...
Let S{a, b, c, d} be a set of four positive integers. If pairs of distinct...
Let S{a, b, c, d} be a set of four positive integers. If pairs of distinct elements of S are added, the following six sums are obtained:5,10, 11,13,14,19. Determine the values of a, b, c, and d. (There are two possibilities. )
Choose and write down a sample of 12 distinct (different) positive integers (no modes), each less...
Choose and write down a sample of 12 distinct (different) positive integers (no modes), each less than 100, in a way that your data set would have a range of 90, a mean of 59, and a median of 55 In order not to treat the data as an abstract set, state what your data might represent with an applicable unit. Show your data set and your work to demonstrate that your data set does have the statistical characteristics mentioned....
Let An = {ai} n i=1 denote a list of n distinct positive integers. The median...
Let An = {ai} n i=1 denote a list of n distinct positive integers. The median mA of An is a value in An such that half the elements in An are less than m (and so, the other half are greater than or equal m). In fact, the median element is said to have a middle rank. (a) Develop an algorithm that uses Sorting to return mA given An. (6%) (b) Now assume that one is given another list...
Let us divide the odd positive integers into two arithmetic progressions; the red numbers are 1,...
Let us divide the odd positive integers into two arithmetic progressions; the red numbers are 1, 5, 9, 13, 17, 21, ... The blue numbers are 3, 7, 11, 15, 19, 23,.... (a) Prove that the product of two red numbers is red, and that the product of two blue numbers is red. (b) Prove that every blue number has a blue prime factor. (c) Prove that there are infinitely many blue prime numbers. Hint: Follow Euclid’s proof, but multiply...
Prove or disprove: If a, b, c are any three distinct positive integers such that 1/a...
Prove or disprove: If a, b, c are any three distinct positive integers such that 1/a + 1/b + 1/c = 1, then a + b + c is a prime
Prove or disprove: If a, b, c are any three distinct positive integers such that 1/a...
Prove or disprove: If a, b, c are any three distinct positive integers such that 1/a + 1/b + 1/c = 1, then a + b + c is a prime.
Let a1 ≥ a2, . . . , an be a sequence of positive integers whose...
Let a1 ≥ a2, . . . , an be a sequence of positive integers whose sum is 2n − 2. Prove that there exists a tree T on n vertices whose vertices have degrees a1, a2, . . . , an. Sketch of solution: Prove that there exist i and j such that ai = 1 and aj ≥ 2. Remove ai, subtract 1 from aj and induct on n.
Let a and b be positive integers, and let d be their greatest common divisor. Prove...
Let a and b be positive integers, and let d be their greatest common divisor. Prove that there are infinitely many integers x and y such that ax+by = d. Next, given one particular solution x0 and y0 of this equation, show how to find all the solutions.
Show that if a, b are positive integers and d = hcf(a, b), then there are...
Show that if a, b are positive integers and d = hcf(a, b), then there are positive integers s, t such that d = sa − tb.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT