Chapter 8: Problem 8
How many onto functions are there from a set with seven elements to one with five elements?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 8: Problem 8
How many onto functions are there from a set with seven elements to one with five elements?
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for free
Suppose someone picks a number \(x\) from a set of \(n\) numbers. A second person tries to guess the number by successively selecting subsets of the \(n\) numbers and asking the first person whether \(x\) is in each set. The first person answers either "yes" or "no." When the first person answers each query truthfully, we can find x Links using log n queries by successively splitting the sets used in each query in half. Ulam’s problem, proposed by Stanislaw Ulam in 1976, asks for the number of queries required to find x, supposing that the first person is allowed to lie exactly once. a) Show that by asking each question twice, given a number \(x\) and a set with \(n\) elements, and asking one more question when we find the lie, Ulam's problem can be solved using \(2 \log n+1\) queries. b) Show that by dividing the initial set of \(n\) elements into four parts, each with \(n / 4\) elements, 1\(/ 4\) of the elements can be eliminated using two queries. [Hint: Use two queries, where each of the queries asks whether the element is in the union of two of the subsets with \(n / 4\) elements and where one of the subsets of \(n / 4\) elements is used in both queries.] c) Show from part (b) that if \(f(n)\) equals the number of queries used to solve Ulam's problem using the method from part (b) and \(n\) is divisible by \(4,\) then \(f(n)=f(3 n / 4)+2\) . d) Solve the recurrence relation in part (c) for \(f(n)\) e) Is the naive way to solve Ulam’s problem by asking each question twice or the divide-and-conquer method based on part (b) more efficient? The most efficient way to solve Ulam’s problem has been determined by A. Pelc [Pe87].
a) Find a recurrence relation for the number of ternary strings of length \(n\) that contain two consecutive symbols that are the same. b) What are the initial conditions? c) How many ternary strings of length six contain consecutive symbols that are the same?
a) Find the recurrence relation satisfied by \(S_{n},\) where \(S_{n}\) is the number of regions into which three-dimensional space is divided by \(n\) planes if every three of the planes meet in one point, but no four of the planes go through the same point, b) Find \(S_{n}\) using iteration.
Generating functions are useful in studying the number of different types of partitions of an integer \(n .\) A partition of a positive integer is a way to write this integer as the sum of positive integers where repetition is allowed and the or- der of the integers in the sum does not matter. For exam- ple, the partitions of 5 (with no restrictions) are \(1+1+1+1+\) \(1+1,1+1+1+2,1+1+3,1+2+2,1+4,2+3,\) and \(5 .\) Exercises \(53-58\) illustrate some of these uses. Show that the coefficient \(p_{d}(n)\) of \(x^{n}\) in the formal power series expansion of \((1+x)\left(1+x^{2}\right)\left(1+x^{3}\right) \cdots\) equals the number of partitions of \(n\) into distinct parts, that is, the number of ways to write \(n\) as the sum of positive inte- gers, where the order does not matter but no repetitions are allowed.
Messages are transmitted over a communications channel using two signals. The transmittal of one signal requires 1 microsecond, and the transmittal of the other signal requires 2 microseconds. a) Find a recurrence relation for the number of different messages consisting of sequences of these two signals, where each signal in the message is immediately followed by the next signal, that can be sent in n microseconds. b) What are the initial conditions? c) How many different messages can be sent in 10 microseconds using these two signals?
What do you think about this solution?
We value your feedback to improve our textbook solutions.