GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many odd numbers appear in rows 0 to 99 of Pascal's triangle (row n being C(n,0), …, C(n,n))?
- A. 1024
- B. 1458
- C. 2187
- D. 1251
Correct answer: D. 1251
By Lucas' theorem row n has 2^(popcount n) odd entries. Rows 0–63 give 3⁶ = 729; rows 64–95 give 2 · 3⁵ = 486; rows 96–99 (binary 11000xx) give 4 · (1 + 2 + 2 + 4) = 36. Total 729 + 486 + 36 = 1251.
More Discrete Mathematics questions
- What is the exponent of the largest power of 3 dividing C(200, 100)?
- Evaluate Σ{k=0}^{10} k · C(10, k)².
- Evaluate Σ{k=0}^{10} C(10, k) · C(12, k + 3).
- In how many ways can 7 distinct people be divided into non-empty unlabelled groups so that every group has at least 2 people?
- In how many ways can 50 be written as an unordered sum of 2s, 5s and 10s that uses at most three 10s?
- How many words of length 8 over the alphabet {a, b, c} contain each of the letters a, b and c an even number of times (zero allowed)?