Blog
Discrete Mathematics Past Paper Spring 2025 – BS 2nd Semester Punjab University (MATH-105)
University of the Punjab BS 4-year programme, second semester Spring 2025, Discrete Mathematics (MATH-105) paper (60 marks, 3 hours). The question paper is the official University of the Punjab paper published on pu.edu.pk (BS 4-year programme past papers, Spring 2025); it is retyped here and the answers are written by Shining Study. Worked solutions: inverse of (x − 2)³, proof by contradiction, logic translation, recurrence relation, pigeonhole (26), partial order, induction for divisibility by 9, relation operations and the three-magazine Venn diagram (10 only Fortune, 20 none).
Solved answers
Q1 – Solve the following (6 × 5)
I. Function, inverse, f(x) = (x − 2)³. A function f: A → B assigns to each element of A exactly one element of B. If f is one-to-one and onto (bijective), its inverse f⁻¹: B → A is defined by f⁻¹(y) = x ⇔ f(x) = y. Here f(x) = (x − 2)³ is strictly increasing on ℝ, hence one-to-one, and every real y is reached, hence onto. Let y = (x − 2)³ ⇒ x − 2 = ∛y ⇒ x = ∛y + 2. So f⁻¹(x) = ∛x + 2. Check: f(f⁻¹(x)) = (∛x)³ = x.
II. Proof by contradiction: if 3n + 2 is odd then n is odd. Assume 3n + 2 is odd but n is even. Then n = 2k for some integer k, so 3n + 2 = 6k + 2 = 2(3k + 1), which is even. This contradicts the hypothesis that 3n + 2 is odd. Hence the assumption is false and n must be odd. ∎
III. Translate into logic. Let q: “You can ride the roller coaster”, r: “You are under 4 feet tall”, s: “You are older than 16 years old”. The sentence becomes (r ∧ ¬s) → ¬q (if you are under 4 feet and not older than 16, you cannot ride).
IV. Recurrence for aₙ = 2n + eⁿ. aₙ − aₙ₋₁ = [2n + eⁿ] − [2(n − 1) + eⁿ⁻¹] = 2 + eⁿ − eⁿ⁻¹. So aₙ = aₙ₋₁ + 2 + (e − 1)eⁿ⁻¹ for n ≥ 2, with a₁ = 2 + e. (Equivalent form: aₙ = e·aₙ₋₁ + 2n − 2e(n − 1).) Check n = 2: a₂ = 2 + e + 2 + e² − e = 4 + e² ✓.
V. Pigeonhole principle (statements = students). We need at least 6 students with the same grade among 5 grades. By the generalised pigeonhole principle, ⌈N/5⌉ ≥ 6 ⇒ N ≥ 5·5 + 1 = 26 students. With 25 students it is possible to have exactly 5 in each grade. (“statements” in the paper means students.)
VI. R is a partial order. Reflexive: (0,0), (1,1), (2,2), (3,3) ∈ R. Antisymmetric: the only non-loop pairs are (1,2), (1,3), (2,3); none of (2,1), (3,1), (3,2) is in R, so (a,b) and (b,a) both in R only when a = b. Transitive: the only chain is (1,2), (2,3) ⇒ (1,3), which is in R; all other combinations involve loops. Hence R is reflexive, antisymmetric and transitive – a partial order, and ({0,1,2,3}, R) is a poset (0 is unrelated to 1, 2, 3).
Q2 (I) – Induction: 9 | 10ⁿ + 3·4ⁿ⁺² + 5
Let P(n): 10ⁿ + 3·4ⁿ⁺² + 5 is divisible by 9.
Basis n = 1: 10 + 3·4³ + 5 = 10 + 192 + 5 = 207 = 9 × 23 ✓.
Inductive step: assume 10ᵏ + 3·4ᵏ⁺² + 5 = 9m. Then
10ᵏ⁺¹ + 3·4ᵏ⁺³ + 5 = 10·10ᵏ + 12·4ᵏ⁺² + 5
= 10(10ᵏ + 3·4ᵏ⁺² + 5) − 30·4ᵏ⁺² − 50 + 12·4ᵏ⁺² + 5
= 10(9m) − 18·4ᵏ⁺² − 45
= 9(10m − 2·4ᵏ⁺² − 5), which is divisible by 9.
By the principle of mathematical induction P(n) is true for all n ∈ ℕ. ∎
Q2 (II) – Relations on S = {0, 1, 2, 3}
R₁ = {(m, n) | m + n = 3} = {(0,3), (1,2), (2,1), (3,0)}.
R₂ = {(m, n) | m ≤ n} = {(0,0), (0,1), (0,2), (0,3), (1,1), (1,2), (1,3), (2,2), (2,3), (3,3)} (10 pairs).
i) R₁ ∩ R₂ = {(0,3), (1,2)}
ii) R₁ ∪ R₂ = {(0,0), (0,1), (0,2), (0,3), (1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,0), (3,3)} (12 pairs)
iii) R₁ ⊕ R₂ = (R₁ ∪ R₂) − (R₁ ∩ R₂) = {(0,0), (0,1), (0,2), (1,1), (1,3), (2,1), (2,2), (2,3), (3,0), (3,3)} (10 pairs)
Q2 (III) – Survey of 120 people (Venn diagram)
| Region | Calculation | People |
|---|---|---|
| N ∩ F ∩ T | given | 8 |
| N ∩ T only | 20 − 8 | 12 |
| N ∩ F only | 25 − 8 | 17 |
| T ∩ F only | 15 − 8 | 7 |
| N only | 65 − 12 − 17 − 8 | 28 |
| F only | 42 − 17 − 7 − 8 | 10 |
| T only | 45 − 12 − 7 − 8 | 18 |
| At least one | 28 + 10 + 18 + 12 + 17 + 7 + 8 | 100 |
| None | 120 − 100 | 20 |
a) Venn diagram: three overlapping circles N, F, T with the values above in each region and 20 outside the circles.
b) Only Fortune = 10.
c) No magazine = 20. (Check by inclusion–exclusion: 65 + 42 + 45 − 20 − 25 − 15 + 8 = 100.)
Upload a photo in 10 seconds — no form to fill. We clean it, solve it and credit you.
