GATE | GATE CS 2008 | Question 24
![]()
(A) P = Q – k
(B) P = Q + k
(C) P = Q
(D) P = Q +2 k
Answer: (A)
Explanation:
P is sum of odd integers from 1 to 2k Q is sum of even integers from 1 to 2k Let k = 5 P is sum of odd integers from 1 to 10 P = 1 + 3 + 5 + 7 + 9 Q is sum of even integers from 1 to 10 Q = 2 + 4 + 6 + 8 + 10 In general, Q can be written as Q = (1 + 3 + 5 + 9..... ) + (1 + 1 + .....) = P + k
Recommended Posts:
- GATE | GATE CS 2008 | Question 52
- GATE | GATE CS 2008 | Question 53
- GATE | GATE CS 2008 | Question 54
- GATE | GATE CS 2008 | Question 55
- GATE | GATE CS 2008 | Question 56
- GATE | GATE CS 2008 | Question 85
- GATE | GATE CS 2008 | Question 58
- GATE | GATE CS 2008 | Question 59
- GATE | GATE CS 2008 | Question 85
- GATE | GATE CS 2008 | Question 61
- GATE | GATE CS 2008 | Question 62
- GATE | GATE CS 2008 | Question 64
- GATE | GATE CS 2008 | Question 85
- GATE | Gate IT 2008 | Question 82
- GATE | Gate IT 2008 | Question 81



