Assignment 5
Assignment 5
Assignment 5
Imagine you received a scholarship that would cover only 3 courses out of the 11 courses
related to your field of study at your university. How many ways will you have to choose
We will employ the combinations formula to select a group of r = 3 courses from a total of
n =11 courses. The reason for using combinations is that the sequence in which the courses are
chosen is inconsequential, and once selected, the courses are not substituted.
C (n . r )= ( nr )= r ! ( n−r
n!
)!
when n≥ r
C (n . r )= ( 113 )= 3 ! ( 11−3
11!
)!
( 113 )= 311!
!.8!
How many ways can you choose for the remaining two courses if one course- English (out
If it's compulsory to include English alongside the scholarship, we need to select r=2 courses
from the remaining n=10 courses. Following the rationale applied in the earlier question, we will
C (n . r )= ( 102 )= 2 ! ( 10−2
10 !
)!
( 102 )= 210!
! ( 8) !
( 102 )=45
There are 165 ways to choose 3 courses out of 11 for the scholarship. After choosing this 1
mandatory course (English) there are 45 ways to select the remaining 10 courses.
Question 2.
Consider two sets A and B having cardinality of your choice. Explain how many injective
and bijective functions are possible from set A to set B. Please avoid the examples given in
textbooks or online resources and come up with your own unique example.
Injective Function:
An injective function or one-to-one function ensures that each element from set A maps to a
distinct element in set B (Doerr & Levasseur, n.d. Chapter 7.2).
For an injective function from set A to set B, all elements in set A must be mapped to distinct
elements in set B.
It is possible to create an injective function where each element in set A is mapped to a distinct
There are exactly 3 factorial (3!) = 6 injective functions possible from set A to set B in this
scenario.
Bijective Function:
(one-to-one function) and surjective (onto function) properties. This implies that for every
element "b" in the codomain B, there exists precisely one element "a" in the domain A such that
f(a) = b. When the function adheres to this condition, it establishes a one-to-one correspondence
The number of elements in set A must be equal to the number of elements in set B. Each element
in set A must be mapped to a distinct element in set B. There must be no unmapped elements in
set B.
Since both sets A and B have the same number of elements and considering that injectivity is
satisfied: It is possible to have a bijective function from set A to set B in this scenario. There is
only one possible bijective function since all elements from A are uniquely mapped to all
elements in B:
Therefore, in this case, there are 6 injective functions and only 1 bijective function possible from
To find the coefficient of x 7 in the expansion of ( x 3 ) ( x+ 2 )10+ ( x +5 )7, let's expand each term
separately using the Binomial Theorem and then find the term that contributes to x 7when the
( x 3 ) ( x+ 2 )10
For ( x 3 ) ( x+ 2 )10 , the term that contributes to x 7will occur when k = 7 in the expansion.
( 107 ) x 10−7
×27
when k = 4,
( x +5 )7:
( 74 ) x7 −4 4
×5
¿ ( 74 ) x × 625
3
3 3
¿ 35 × x × 625=21875 x
(Levin, n.d.)
Question 4.
The newly constructed apartment has 30 club members. The club has planned to create a
sports committee consisting of 7 club members. How many different sports committees are
possible?
Since the ordering does not matter, we use combinations formula to find the number of different
C (n . r )= ( nr )= r ! ( n−r
n!
)!
when n≥ r
( 307 )= 7 ! ( 30−7
30!
)!
( 307 )=2035800 .
How many committees are possible if it is mandatory to have the selected treasurer of the
If the selected treasurer must be a part of the sports committee, we'll first choose the treasurer
and then fill the remaining 6 spots from the remaining 29 members.
The number of ways to choose the treasurer out of 30 members is 30 (since there's only one
treasurer).
After choosing the treasurer, the number of ways to select the remaining 6 members from the
C (n . r )= ( nr )= r ! ( n−r
n!
)!
when n≥ r
( 296 )= 6 ! ( 29−6
29!
)!
( 296 )=475020
(Combination, 2017).
Question 5.
A bit string is a series or arrangement of binary digits that are normally made up of 0s and 1s.
The term "bit" refers to the binary digit, the most basic unit of information in computing and
digital communications.
For example, a bit string could be "1100100," where each digit (0 or 1) represents a single bit
and the complete series comprises a bit string. Depending on the context or encoding used, this
bit string could be read as data, such as a binary number (in this case, representing the number
100 in decimal) or as part of a larger data structure, such as a text character in ASCII encoding.
help find the number of bit strings possible for the example.
In this case, we have a bit string of length 7 and we want exactly 5 bits to be set to 1. We need to
choose 5 positions out of the 7 available positions to place the 1s. This is because once we decide
on the positions for the 1s, the remaining positions will automatically be filled with 0s.
The number of bit strings with length n and weight k is C(n,r) = C(7,5) = 21.
There are 21 different combinations of positions where the 1s can be placed within a bit string
of length 7 with a weight of 5. Each of these combinations corresponds to a unique bit string
This method of using combinations allows us to systematically count the number of possible
arrangements of 1s within a bit string of a given length and weight, helping to determine the total
(Combination, 2017).
Choose a 3-digit number example and explain the number of derangements that can be
2. 768
3. 687
4. 678
5. 867
6. 876
For a permutation to be a derangement, none of the digits can appear in their original
position.
687: Digits 7 and 8 are in different positions from the original number.
867: Digits 7 and 6 are in different positions from the original number.
So, for the 3-digit number 786, there are two derangements: 687, 867.
To create a 4-digit password for your Android phone, How many ways are there to crack
When creating a 4-digit password without any repeating digits, you have 10 options for the first
digit (0 to 9), then 9 options for the second digit (since you can't repeat the first digit), 8 options
for the third digit (can't repeat first and second), and finally 7 options for the fourth digit (can't
If no digit repeats, and the order does not matter, we are going to use the Permutations formula
b. If the digits can be repeated, how many ways are there to crack the password?
If the digits can be repeated in the password, for each of the four positions, there are 10 options
(0 to 9) available.
Therefore, the number of ways to create a 4-digit password allowing repetition of digits is
calculated as: we are going to use the combinations formula to choose r = 4 digits out
References:
https://byjus.com/maths/bijective-function/
Doerr, A., & Levasseur, K. (n.d.). ADS Properties of Functions. In discretemath.org. Retrieved
https://byjus.com/maths/permutation/