Exercise-5 Lect 23 To 28 Induction Contradiction and Algorithm
Exercise-5 Lect 23 To 28 Induction Contradiction and Algorithm
Algorithm
Q.No:1
Prove the following by the mathematical induction method:
It looks like your question is incomplete. Could you please provide the full mathematical
statement that needs to be proved using mathematical induction?
1. Base Case: Prove that the statement holds for the smallest integer (usually n=1n = 1 or
n=0n = 0).
2. Inductive Hypothesis: Assume that the statement holds for some integer kk.
3. Inductive Step: Prove that if the statement holds for kk, then it must also hold for
k+1k+1.
Let me know the full statement, and I'll be happy to help with the proof! 😊
Q.No:2
First formulate the negation of the following statement then prove the statement by the
contradiction method:
This means that there is some even integer NN that is the largest among all even integers.
Step 2: Proof by Contradiction
To prove the original statement by contradiction, we assume the negation is true and show that it
leads to a contradiction.
Assumption:
Assume that there exists a greatest even integer NN. This means that NN is the largest even
number, and there is no even number greater than NN.
Contradiction:
Since our assumption leads to a contradiction, the original statement must be true.
Q.No:3
Prove the following by contraposition:
If a product of two positive real numbers is greater than 100, then at least one of the numbers is
greater than 10.
Answer:
Proof by Contraposition
If a product of two positive real numbers is greater than 100, then at least one of the
numbers is greater than 10.
PP be the statement: "The product of two positive real numbers is greater than 100."
QQ be the statement: "At least one of the numbers is greater than 10."
P⇒QP \Rightarrow Q
Step 2: Contrapositive Statement
If both numbers are at most 10, then their product is at most 100.
This is logically equivalent to the original statement. If we can prove this, then the original
statement is also true.
Thus, the product of aa and bb is at most 100, which is precisely ¬P\neg P (i.e., the product is
not greater than 100).
Since we have proved ¬Q⇒¬P\neg Q \Rightarrow \neg P, the original statement P⇒QP \
Rightarrow Q is true by contraposition.
Q.No:4
Use the Euclidean algorithm to hand-calculate the greatest common divisors of each of the
following pairs of integers:
a) 1,188 and 385
b) 509 and 1,177
Answer:
We will use the Euclidean Algorithm to find the greatest common divisor (GCD) for each pair
of integers. The algorithm follows these steps:
Final Answers
GCD(1188, 385) = 11
GCD(509, 1177) = 1 (They are relatively prime)
Or
Since the remainder is now 0, the last non-zero remainder is the greatest common divisor.
Q.No:5
The following algorithm segment makes change; given an amount of money A between 1cent
and 99cent, it determines a breakdown of A into quarters (q), dimes (d), nickels (n), and pennies
(p).
q : = A div 25
A : = A mod 25
d : = A div 10
A : = A mod 10
n : = A div 5
p : = A mod 5
Trace this algorithm segment for A = 69.
Answer:
Now, A=9A = 9.
Now, A=4A = 4.
Quarters (q) = 2
Dimes (d) = 1
Nickels (n) = 1
Pennies (p) = 4
Or
Step A q d n p
1 69
2 69 2
3 19 2
4 19 2 1
5 9 21
6 9 211
7 4 211
8 4 2114
q = 2 (two quarters)
d = 1 (one dime)
n = 1 (one nickel)
p = 4 (four pennies)
Here's how to calculate the number of bit strings with lengths from four through nine digits:
A bit string is a sequence of bits (0s and 1s). For a bit string of length 'n', there are 2 possibilities
for each position (either a 0 or a 1). Therefore, there are 2ⁿ possible bit strings of length 'n'.
Calculation:
We need to find the total number of bit strings of lengths 4, 5, 6, 7, 8, and 9. We can do this by
calculating the number of bit strings for each length and then adding them together:
Length 4: 2⁴ = 16
Length 5: 2⁵ = 32
Length 6: 2⁶ = 64
Length 7: 2⁷ = 128
Length 8: 2⁸ = 256
Length 9: 2⁹ = 512
Therefore, there are 1008 bit strings consisting of from four through nine digits.
Q.No:2
Suppose n(A) = 12 denotes the number of employee having cars in a company, n(B) = 9 denotes the
number of employee having motorcycle and 5 employees have both then find .
Answer:
Here's how to find n(A ∪ B), which represents the total number of employees who have either a
car or a motorcycle or both:
Where:
Therefore, there are 16 employees who have either a car or a motorcycle or both.
Q.No:3
c) Evaluate .
d) How many 4-permutations are there of a set of 8 objects?
Answer:
P(n,r)=n!(n−r)!P(n, r) = \frac{n!}{(n-r)!}
For P(6,2)P(6,2):
P(6,2) = 30 \] ✅
A 4-permutation of a set of 8 objects is the number of ways to choose 4 objects from the set of 8
where the order matters. The formula for permutations is:
P(n, r) = n! / (n - r)!
Where n is the total number of objects and r is the number of objects we are choosing.
P(8, 4) = 8! / (8 - 4)! = 8! / 4!
Q.No:4
Compute and for .
Answer:
You are asking to compute the floor and ceiling functions for x=754x = \frac{75}{4}.
Step 1: Compute xx
The floor function ⌊x⌋\lfloor x \rfloor returns the greatest integer less than or equal to xx.
The ceiling function ⌈x⌉\lceil x \rceil returns the smallest integer greater than or equal to xx.
Q.No:5
How many distinguishable ways can the letter of the word GHWWBCBWYY be arranged?
Answer:
G: 1
H: 1
W: 3
B: 2
C: 1
Y: 2
The number of distinguishable arrangements of these letters can be found using the formula for
permutations with repetitions:
n1!n2!...nk!n!
where n is the total number of letters, and n1,n2,...,nk are the counts of each distinct letter.
In our case, n = 10, and we have the following counts for each letter:
G: 1
H: 1
W: 3
B: 2
C: 1
Y: 2
1!1!3!2!1!2!10!=1⋅1⋅6⋅2⋅1⋅210!=2410!
243,628,800=151,200
Thus, there are 151,200 distinguishable ways to arrange the letters of the word
GHWWBCBWYY.
Q.No:6
How many signals can be given by 7 flags of different colors using 3 flags at a time?
Answer:
This is a permutation problem because the order of the flags matters. We have 7 flags and we
want to arrange 3 of them at a time. The formula for permutations is:
P(n, r) = n! / (n - r)!
Where n is the total number of items and r is the number of items1 we choose at a time.
So, we have:
Therefore, 210 different signals can be given using 7 flags of different colors, taking 3 at a time.
Q1) Using mathematical induction prove that is true for integral values of .
Answer:
Q2) Using mathematical induction to prove that for all positive integers
n.
Q3) Suppose is divisible by 6 is true for any positive integer. Justify the statement for n = k+1.
Q4) Suppose is divisible by 4 is true for . Justify the statement for .
Question:1
A die is weighted so that the outcomes produce the following probability distribution:
Outcome 1 2 3 4 5 6
Probability 0.2 0.4 0.2 0.2 0.1 0.1
Consider the event A = {even number occur on die} then find and .
Question:2
A box contains six discs numbered 1 to 6. Find for each integer x ( x is from 4 to 9), the probability that
the numbers on two discs drawn without replacement have a sum equal to x
Question:3
There are 6 cats and 12 dogs in a form house. Half of the dogs and half of the cats have blue eyes. Find
the probability that one pet chosen either a cat or a pet having blue eyes.
Question:4
A fruit basket contains 20 oranges 4 of which are rotten and 10 are good. Two oranges are selected. What
is probability that the first is good and the second rotten?
Question:5
A pair of fair dice is thrown. Find the probability P that the sum is 8 or greater if
(i) 5 appear on first die.
(ii) 5 appear on at least one die.
Question:6
Consider an equiparable space S = {w, x, y, z}; hence each elementary event has the same
probability .
Question:7
What is the probability that a randomly selected poker hand contains exactly 4 aces, given that it contains
at least 3 aces?