MauryaHub PYQ Practice

Discrete Mathematics · Quiz 2 · May 2026

Discrete Mathematics · Quiz 2 · May 2026

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

17 / 17 published solutions

Question 2 MSQ · 4.0 marks

Consider the following truth table:
Source diagram or notation
6406537135215.Source diagram or notation
6406537135216.Source diagram or notation
6406537135217.Source diagram or notation
6406537135218.Source diagram or notation

Published solution

The truth column is true exactly when p and q agree, so it represents equivalence \(p\leftrightarrow q\). B simplifies as \(\neg(p\lor q)\lor(p\land q)=(\neg p\land\neg q)\lor(p\land q)\), exactly D. A simplifies to q and C is always true, so neither matches all four rows. **Answer: B, D.** A: **Incorrect:** At p=false,q=false the implication is false while the required column is true. B: **Correct:** True when both inputs are true or both false, matching the table. C: **Incorrect:** A conjunction always implies its disjunction, so this is a tautology rather than equivalence. D: **Correct:** Explicitly lists the two cases in which the inputs agree.

Report a correction for Q2

Question 3 MCQ · 4.0 marks

Use axioms of inference to determine whether the conclusion inferred from the hypothesis is logically valid or not. The hypotheses are: 1. It is not raining or Yvette has her umbrella. 2. Yvette does not have her umbrella or she does not get wet. 3. It is raining or Yvette does not get wet. Thus, the conclusion is: Yvette does not get wet.
6406537135219.
The conclusion is valid.
6406537135220.
The conclusion is invalid.

Published solution

Let R mean raining, U umbrella and W getting wet. The premises are \(\neg R\lor U\), \(\neg U\lor\neg W\), and \(R\lor\neg W\). Resolve the first two on U to get \(\neg R\lor\neg W\). Resolve this with the third on R to obtain \(\neg W\). Equivalently, if it rains the first two premises imply not wet, and if it does not rain the third premise implies not wet. Thus every case gives the conclusion. **Answer: A.** A: **Correct:** Resolution derives the conclusion from the premises. B: **Incorrect:** No assignment satisfying all premises can make the conclusion false.

Report a correction for Q3

Question 4 MCQ · 4.0 marks

Source diagram or notation
6406537135230.
True
6406537135231.
False

Published solution

A composition of bijections is a bijection. For injectivity, if f(g(a1))=f(g(a2)), injectivity of f gives g(a1)=g(a2), and injectivity of g then gives a1=a2. For surjectivity, take any c in C; surjectivity of f gives a b in B with f(b)=c, and surjectivity of g gives an a in A with g(a)=b. Then f(g(a))=c. Hence f∘g maps A bijectively to C. **Answer: A.** A: **Correct:** Both injectivity and surjectivity are preserved in this composition. B: **Incorrect:** The stated assumptions are sufficient; the composition cannot fail to be bijective.

Report a correction for Q4

Question 5 MCQ · 2.0 marks

Source diagram or notation
6406537135221.Source diagram or notation
6406537135222.Source diagram or notation
6406537135223.Source diagram or notation
6406537135224.Source diagram or notation

Published solution

Write the two odd integers as m=2x+1 and n=2y+1, where x,y are integers. Their sum is \(m+n=2x+1+2y+1=2(x+y+1)\). Since x+y+1 is an integer, this is twice an integer and hence even. A direct proof must establish the algebraic form for all choices, not only a special case. **Answer: C.** A: **Incorrect:** The two odd integers need not be equal. B: **Incorrect:** Drops the two constant 1 terms. C: **Correct:** Correctly factors the sum into twice an integer. D: **Incorrect:** Only describes one possible sum, not the general case.

Report a correction for Q5

Question 6 MCQ · 2.0 marks

Consider the following proof to show that every positive integer can be written as a sum of a subset of integers that are powers of
Source diagram or notation
. For example, the integers
Source diagram or notation
and
Source diagram or notation
are powers of
Source diagram or notation
, and the integer
Source diagram or notation
can be written as a sum of two integers that are powers of
Source diagram or notation
. Proof. Let
Source diagram or notation
be the statement that the positive integer
Source diagram or notation
can be written as a sum of a subset of distinct powers of
Source diagram or notation
. Base Case: When
Source diagram or notation
, then
Source diagram or notation
. Hence
Source diagram or notation
is true. Induction Hypothesis: ____________. We have to show that
Source diagram or notation
is true. Inductive Proof: Case 1: If
Source diagram or notation
is a power of
Source diagram or notation
, then let
Source diagram or notation
and hence,
Source diagram or notation
is true. Case 2: If
Source diagram or notation
is not a power of
Source diagram or notation
. Let
Source diagram or notation
be the largest power of
Source diagram or notation
less than
Source diagram or notation
, i.e.,
Source diagram or notation
. Let
Source diagram or notation
. Then,
Source diagram or notation
is the integer such that
Source diagram or notation
. Hence, by the induction hypothesis,
Source diagram or notation
is true, i.e.,
Source diagram or notation
can be written as a sum of a subset of distinct powers of
Source diagram or notation
. Therefore,
Source diagram or notation
, where both terms are sums of distinct powers of
Source diagram or notation
. Hence
Source diagram or notation
is true. Which of the following is the correct induction hypothesis for this proof?
6406537135225.
Assume
Source diagram or notation
be true, where
Source diagram or notation
6406537135226.
Assume
Source diagram or notation
is true for every positive integer
Source diagram or notation
, where
Source diagram or notation
6406537135227.
Assume
Source diagram or notation
be true, where
Source diagram or notation
6406537135228.
Assume
Source diagram or notation
is true for every positive integer
Source diagram or notation
, where
Source diagram or notation

Published solution

The proof uses strong induction: assume P(k) for every integer 1<=k<=n, with n>=1, to prove P(n+1). When n+1 is not a power of two, choose the largest power \(2^m<n+1\). The intended remainder is \(r=(n+1)-2^m\), so \(1\le r<2^m\) and r<=n. The hypothesis supplies a representation for this possibly much smaller r. Its powers are below 2^m, so adding 2^m preserves distinctness. A printed occurrence of n-1 in the remainder must be read as a typo; the corrected expression is n+1. Ordinary induction assuming only P(n) does not directly supply P(r). **Answer: D.** A: **Incorrect:** Assumes only P(n) and also uses a base range starting at zero, unlike the given positive-integer proof. B: **Incorrect:** States the strong form but permits n=0 although the proof starts with P(1); D gives the correct stated range. C: **Incorrect:** Assumes only P(n), insufficient for the smaller remainder used in this argument. D: **Correct:** Supplies all earlier positive-integer cases with the correct n>=1 range.

Report a correction for Q6

Question 7 MCQ · 2.0 marks

Which of the following is a solution to the recurrence relation
Source diagram or notation
, where
Source diagram or notation
?
6406537135248.Source diagram or notation
6406537135249.Source diagram or notation
6406537135250.Source diagram or notation
6406537135251.
None of these

Published solution

Starting with a0=1, repeatedly apply an=n a(n-1): a1=1, a2=2, a3=6, and so on. The product is \(a_n=n(n-1)\cdots1\,a_0=n!\). Also 0!=1 satisfies the initial condition. A closed form must satisfy both the recurrence and the base value. **Answer: B.** A: **Incorrect:** The triangular-number expression has value 0 at n=0 and does not satisfy the factorial recurrence. B: **Correct:** n! satisfies n(n-1)!=n! and 0!=1. C: **Incorrect:** n fails both the n=0 initial value and later recurrence values. D: **Incorrect:** B is a valid closed form.

Report a correction for Q7

Question 8 NAT · 3.0 marks

Calculate the value of
Source diagram or notation
.

Published solution

The integers 101 through 200 inclusive form an arithmetic progression of 100 terms. Their average is (101+200)/2=150.5. Hence \(\sum_{k=101}^{200}k=100\cdot150.5=15050\). Alternatively subtract 1+...+100 from 1+...+200 using n(n+1)/2. **Answer: 15050.**

Report a correction for Q8

Question 9 NAT · 3.0 marks

Among a group of
Source diagram or notation
(not necessarily consecutive) integers, at least how many integers must have the same remainder when divided by
Source diagram or notation
?

Published solution

Division by 15 has only 15 possible remainders, 0 through 14. Put 50 integers into these 15 remainder classes. By the generalised pigeonhole principle, some class contains at least \(\lceil50/15\rceil=4\) integers. If every class contained at most three, there would be at most 45 integers. The bound is sharp: distribute them with five classes of four and ten classes of three. **Answer: 4.**

Report a correction for Q9

Question 10 MSQ · 3.0 marks

Source diagram or notation
6406537135232.Source diagram or notation
6406537135233.Source diagram or notation
6406537135234.Source diagram or notation
6406537135235.Source diagram or notation
6406537135236.Source diagram or notation

Published solution

Given an=n(n+1), the next term is (n+1)(n+2). B works because \(a_{n+1}-a_n=(n+1)[(n+2)-n]=2n+2\). C gives \(a_n(a_n+n)/n^2=n(n+1)\cdot n(n+2)/n^2=(n+1)(n+2)\). D gives \((n+2)a_n/n=(n+1)(n+2)\). For a recursive definition these formulas also need the initial term a1=2; the question tests the displayed update relations for n>=1. **Answer: B, C, D.** A: **Incorrect:** For n=1 it produces 2(2+1)=6, but for n=2 it produces 6(6+1)=42 instead of 12. B: **Correct:** The consecutive-term difference is exactly 2n+2. C: **Correct:** Substituting an=n(n+1) simplifies to the correct next term. D: **Correct:** The consecutive-term ratio is (n+2)/n. E: **Incorrect:** For n=1 it gives 4 instead of a2=6.

Report a correction for Q10

Question 11 MSQ · 3.0 marks

How many ways are there to travel in the
Source diagram or notation
-dimensional space from the origin
Source diagram or notation
to the point
Source diagram or notation
by taking one unit steps in the positive
Source diagram or notation
, positive
Source diagram or notation
, or positive
Source diagram or notation
direction?
6406537135244.Source diagram or notation
6406537135245.Source diagram or notation
6406537135246.Source diagram or notation
6406537135247.Source diagram or notation

Published solution

To reach (4,3,5), every permitted path contains 4 x-steps, 3 y-steps and 5 z-steps: 12 steps total. Count arrangements of this multiset: \(12!/(4!3!5!)\). Equivalently choose 4 of the 12 positions for x, then 3 of the remaining 8 for y, and all 5 remaining for z: \(\binom{12}4\binom83\binom55\). Both give the same number of ordered paths. **Answer: C, D.** A: **Incorrect:** Multiplying the coordinate counts does not count arrangements of all steps. B: **Incorrect:** Independently choosing each direction's positions from 12 allows overlaps and overcounts. C: **Correct:** Sequential position choices use disjoint remaining slots correctly. D: **Correct:** The multinomial coefficient counts all distinct step orderings.

Report a correction for Q11

Question 12 MCQ · 3.0 marks

Consider the following countable set:
Source diagram or notation
Which of the following statements establishes a one-to-one correspondence between the set of natural numbers
Source diagram or notation
and
Source diagram or notation
?
6406537135237.
For each
Source diagram or notation
, assign the bit string containing
Source diagram or notation
1s.
6406537135238.
For each
Source diagram or notation
, assign the natural number whose binary representation is
Source diagram or notation
.
6406537135239.Source diagram or notation
is countable but there is no correspondence between
Source diagram or notation
and
Source diagram or notation
.
6406537135240.Source diagram or notation
is uncountable and therefore, there is no correspondence between
Source diagram or notation
and
Source diagram or notation
.

Published solution

The set consists of finite strings containing only 1s. Assign natural number n to the string of n ones. Distinct lengths give distinct strings, and every all-ones string has exactly one such length, proving both injectivity and surjectivity. Match the convention for zero: if the empty string is included, use natural numbers beginning at 0; if only nonempty strings are included, begin at 1. **Answer: A.** A: **Correct:** The length map gives the required bijection under matching zero/empty-string conventions. B: **Incorrect:** Maps to integers with all-ones binary expansions, only a subset of all natural numbers, so it is not onto the stated full natural-number set. C: **Incorrect:** The explicit length correspondence exists. D: **Incorrect:** The strings can be listed by length and are countable.

Report a correction for Q12

Question 13 MCQ · 3.0 marks

Which of the following is a formula representing the sequence of coefficients for the generating
Source diagram or notation
function ?
6406537135252.Source diagram or notation
6406537135253.Source diagram or notation
6406537135254.Source diagram or notation
6406537135255.Source diagram or notation

Published solution

Use the geometric series \(1/(1-r)=\sum_{n=0}^{\infty}r^n\). Set r=-3x to get \(1/(1+3x)=\sum_{n=0}^{\infty}(-3)^nx^n\), then multiply by x cubed: \[\frac{x^3}{1+3x}=\sum_{n=0}^{\infty}(-3)^nx^{n+3}.\] Thus the first three coefficients are zero and later coefficients alternate 1,-3,9,-27,... . The identity holds as a formal generating series, and analytically for |x|<1/3. **Answer: C.** A: **Incorrect:** Uses positive 3 powers and corresponds to the wrong denominator sign. B: **Incorrect:** Omits the x cubed shift. C: **Correct:** Has both the alternating factor and the three-power shift. D: **Incorrect:** An infinite product is not the required geometric-series expansion.

Report a correction for Q13

Question 14 MCQ · 3.0 marks

Let
Source diagram or notation
be the relation on the set of students consisting of pairs
Source diagram or notation
, where
Source diagram or notation
and
Source diagram or notation
are enrolled in the same course. Let
Source diagram or notation
be the relation consisting of pairs
Source diagram or notation
, where
Source diagram or notation
and
Source diagram or notation
belong to the same department. Which of the following correctly describes
Source diagram or notation
?
6406537135256.
The set of students who take the same course
6406537135257.
The set of students who belong to the same department
6406537135258.
The set of students
Source diagram or notation
and
Source diagram or notation
such that there exists a student
Source diagram or notation
who shares a course with
Source diagram or notation
and a department with
Source diagram or notation
.
6406537135259.
The set of students
Source diagram or notation
and
Source diagram or notation
such that there exists a student
Source diagram or notation
who shares a department with
Source diagram or notation
and a course with
Source diagram or notation
.
6406537135260.
Students who have identical course schedules

Published solution

Composition R∘S means apply S first, then R: \((a,c)\in R\circ S\) if there is b with (a,b) in S and (b,c) in R. Thus a shares a department with b, and b shares a course with c. The intermediate student links two different relations; a and c need not directly share a course or department. **Answer: D.** A: **Incorrect:** Omits the intermediate department step. B: **Incorrect:** Omits the intermediate course step. C: **Incorrect:** Describes applying R first and S second, the reversed composition. D: **Correct:** Correctly applies the same-department relation before the same-course relation. E: **Incorrect:** Identical entire schedules is much stronger and not required.

Report a correction for Q14

Question 15 MCQ · 3.0 marks

Let
Source diagram or notation
and
Source diagram or notation
be relations on a set
Source diagram or notation
represented by the matrices
Source diagram or notation
Which of the following matrices represent
Source diagram or notation
?
6406537135261.Source diagram or notation
6406537135262.Source diagram or notation
6406537135263.Source diagram or notation
6406537135264.
None of these

Published solution

The requested relation is intersection, so an ordered pair is present only when its entry is 1 in both input matrices. Take the entrywise logical AND: row 1 is (0,1,0), row 2 is (0,1,1), and row 3 is (1,0,0). Therefore \(M_{R_1\cap R_2}=\begin{bmatrix}0&1&0\\0&1&1\\1&0&0\end{bmatrix}\). This is neither ordinary matrix multiplication nor Boolean relational composition. **Answer: B.** A: **Incorrect:** Keeps entries that occur in only one relation, resembling a union rather than intersection. B: **Correct:** Matches the entrywise AND matrix. C: **Incorrect:** Does not retain the entries common to both matrices. D: **Incorrect:** B supplies the correct matrix.

Report a correction for Q15

Question 16 NAT · 4.0 marks

How many positive integers between
Source diagram or notation
and
Source diagram or notation
inclusive are divisible by
Source diagram or notation
or
Source diagram or notation
?

Published solution

Use inclusion-exclusion on the interval [100,999]. Multiples of 3 number floor(999/3)-floor(99/3)=333-33=300. Multiples of 4 number 249-24=225. Their overlap consists of multiples of lcm(3,4)=12, numbering 83-8=75. Total=300+225-75=450. Subtract the overlap once because it was counted twice. **Answer: 450.**

Report a correction for Q16

Question 17 NAT · 2.0 marks

Source diagram or notation
Source diagram or notation
Source diagram or notation
If and for some value of
Source diagram or notation
and
Source diagram or notation
, then what is the value of ?

Published solution

Pascal's identity is \(\binom{n+1}k=\binom n{k-1}+\binom nk\). The two terms are supplied as 15 and 20, so the requested value is 15+20=35. It is unnecessary to solve separately for n and k, although n=6,k=3 provides a consistency check. **Answer: 35.**

Report a correction for Q17

Question 18 MSQ · 2.0 marks

Source diagram or notation
6406537135265.
Reflexive Closure
6406537135266.
Symmetric Closure
6406537135267.
Transitive Closure

Published solution

Divisibility is reflexive because a=a×1 for every integer a, including 0 under the usual definition a divides b iff b=ak for an integer k. It is transitive because b=ar and c=bs imply c=a(rs). Thus reflexive and transitive closure add no pairs. It is not symmetric: 2 divides 4 but 4 does not divide 2, so symmetric closure adds missing reversed pairs. **Answer: A, C.** A: **Correct:** Every diagonal pair is already present. B: **Incorrect:** Some reversed pairs, such as (4,2), must be added. C: **Correct:** Every two-step divisibility chain already implies its endpoint pair.

Report a correction for Q18