GATE Computer ScienceModerateGATE CS (PYQ pattern)
T(0) = 1 and T(n) = 2T(n − 1) + n·2ⁿ for n ≥ 1. What is T(10)?
- A. 56320
- B. 57344
- C. 58368
- D. 3060
Correct answer: B. 57344
Divide by 2ⁿ: S(n) = T(n)/2ⁿ satisfies S(n) = S(n − 1) + n, so S(n) = 1 + n(n + 1)/2. T(10) = 2¹⁰ · (1 + 55) = 1024 · 56 = 57344 (forgetting the initial 1 gives 56320).
More Discrete Mathematics questions
- In how many ways can 4 seats be chosen from 12 seats arranged in a circle so that no two chosen seats are adjacent?
- How many connected labelled simple graphs on the vertex set {1, 2, 3, 4, 5} have exactly 5 edges?
- How many assignments to x₁, …, x₈ satisfy x₁ ⊕ x₂ ⊕ … ⊕ x₈ = 1 together with ¬(x₁ ∧ x₂) and ¬(x₃ ∧ x₄)?
- How many assignments to a, b, c, d, e, f satisfy (a ∨ b) ∧ (a → c) ∧ (b → c) ∧ (c → d) ∧ (e ∨ f) ∧ (d → ¬e)?
- Using only the connective → and the two variables p and q (no constants), how many pairwise non-equivalent propositions can be written?
- A Boolean function f(x, y, z) satisfies f(x, y, z) = f(y, x, z) for all inputs. How many such functions exist?