Question

In: Advanced Math

2. Consider functions f : {1, 2, 3, 4, 5, 6} → {1, 2, 3, 4,...

2. Consider functions f : {1, 2, 3, 4, 5, 6} → {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}.

(a) How many of these functions are strictly increasing (i.e. f(1) < f(2) < f(3) < f(4) < f(5) < f(6))? Hint: How many different possibilities are there for the range of f? For each range of f, how many strictly increasing functions are there?

(b) How many of these functions are non-decreasing (i.e. f(1) ≤ f(2) ≤ f(3) ≤ f(4) ≤ f(5) ≤ f(6))? Hint: What are the yards? What are the trees? Or, if you prefer, what are the stars and what are the bars?

Solutions

Expert Solution

2. (a) How many strictly increasing functions f:{1,2,3,…,n}→{1,2,3,…,m} are there?

A function f:{1,2,3,…,n}→{1,2,3,…,m} is determined by how the values f(1),f(2),f(3),…,f(n) are assigned. Since f is a strictly increasing function, f(1)<f(2)<f(3)<…<f(n)

Thus, for a strictly increasing function, each value in the domain is mapped to a distinct element in the codomain. Since there are n elements in the domain and m elements in the codomain, the number of ways we can select the elements in the range is . Once we have selected these elements, there is only one way to assign them so that the function is strictly increasing, namely by assigning the smallest element in the range to be f(1), the next smallest to be f(2), and so forth. Hence, the number of strictly increasing functions is .

(b). How many nondecreasing functions f:{1,2,3,…,n}→{1,2,3,…,m} are there?

Since f is a nondecreasing function, the function is completely determined by how many values of j∈{1,2,3,…,n} are assigned to equal k∈{1,2,3,…,m}.

By similar reasoning, the number of nondecreasing functions f:{1,2,3,…,n}→{1,2,3,…,m} is equal to the number of ways we can insert m−1 addition signs in a row of n ones, which is

since we must select which m−1 of the n+m−1 symbols (n ones and m−1 addition signs) must be addition signs.

​​Thus Answer is

(a)  ​​​​​= 210

(b) 5005


Related Solutions

6. Let A = {1, 2, 3, 4} and B = {5, 6, 7}. Let f...
6. Let A = {1, 2, 3, 4} and B = {5, 6, 7}. Let f = {(1, 5),(2, 5),(3, 6),(x, y)} where x ∈ A and y ∈ B are to be determined by you. (a) In how many ways can you pick x ∈ A and y ∈ B such that f is not a function? (b) In how many ways can you pick x ∈ A and y ∈ B such that f : A → B...
Consider a set A = { 1, 2, 3, 4, 5, 6, 8} Consider these relations,...
Consider a set A = { 1, 2, 3, 4, 5, 6, 8} Consider these relations, 1. R1 = { ( a, b) | a = 3b } Can you write down the pairs ? one such pair is ( 3, 1) 2. R2 = { (a, b) | 2a = b } Can you write down the pairs ? one such pair is (2, 4) 3. R3 = { ( a, b) | a >= 2b } Can you...
2. Consider the following data: x= 1, 2, 3, 4, 5 y =3, 2, 4, 6,...
2. Consider the following data: x= 1, 2, 3, 4, 5 y =3, 2, 4, 6, 5 By hand, not using Matlab, and showing your work: (a) Compute the correlation coefficient. (b) Find the least-squares line. (c) Find the standard deviation around the least-squares line.
1.    M 644 2.    F 345 3.    F 710 4.    F 655 5.    F 539 6.   ...
1.    M 644 2.    F 345 3.    F 710 4.    F 655 5.    F 539 6.    M 492 7.    M 598 8.    F 481 9.    F 622 10. F 545 11. M 707 12. F 332 13. M 538 14. F 470 15. M 469 16. F 483 17. M 572 18. F 487 19. M 358 20. F 440 21. F 637 22. M 447 23. F 482 24. M 485 25. F 417 26. M 569 27. M...
ID X Y 1 2 3 2 3 6 3 4 6 4 5 7 5...
ID X Y 1 2 3 2 3 6 3 4 6 4 5 7 5 8 7 6 5 7 7 6 7 8 8 8 9 7 8 10 12 11 Test the significance of the correlation coefficient. Then use math test scores (X) to predict physics test scores (Y).  Do the following: Create a scatterplot of X and Y. Write the regression equation and interpret the regression coefficients (i.e., intercept and slope). Predict the physics score for each....
[4 5 5 2 4 4 6 3 3 7 5 3 6 3 4 4...
[4 5 5 2 4 4 6 3 3 7 5 3 6 3 4 4 6 5 4 5 3 7 5 5 4 2 6 5 6 6] This is my dataset Find mean, median, mode, variance, standard deviation, coefficient of variation, range, 70th percentile, 3rdquartile of the data and skewness and define what each of these statistics measure. For example, mean is a measure of the central tendency, what about the rest? Use Chebyshev’s rule to find...
[4 5 5 2 4 4 6 3 3 7 5 3 6 3 4 4...
[4 5 5 2 4 4 6 3 3 7 5 3 6 3 4 4 6 5 4 5 3 7 5 5 4 2 6 5 6 6] This is my dataset Split the dataset in two equal parts. You have 30 datavalues. If you split the data in two equal parts each part will contain 15 data values.  Call the first part Y and second part X.Draw scatter plot of the 2 datasets, X being on the horizontal...
tens Units 1 5 2 3 4 8 5 2 5 6 9 6 1 3...
tens Units 1 5 2 3 4 8 5 2 5 6 9 6 1 3 5 4 7 9 7 0 0 4 5 6 9 9 8 1 3 5 6 8 9 9 0 1 2 3 5 9 The table represent a random sample of 31 test scores taken from a large lecture class. Find the following [round to 2 decimal points X. XX] a) [2 pts] Find the 5 number summary [L, Q1, Q2, Q3,...
X 1 3 5 3 4 4 Y 2 5 4 3 4 6 A: Plot...
X 1 3 5 3 4 4 Y 2 5 4 3 4 6 A: Plot the date B: find the line of best fit C: determine ŷ AT x=3 D: Find r and r^2 E: explain r and r^2
Consider the following data table: x 8 5 4 6 2 5 3 y 1 3...
Consider the following data table: x 8 5 4 6 2 5 3 y 1 3 6 3 7 2 5 (15 points) Create a scatterplot of the data either by hand or with a computer.  Does there appear to be a linear relationship between x and y?  If so, what is the strength and direction of the relationship? (20 points) Give the Simple Linear Regression Model, using x as the predictor variable and y as the response variable.  What is the meaning...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT