Question
Quantitative Aptitude Question on Square and Square Roots
Let a1,a2,…. be integers such that a1−a2+a3−a4+…..+(−1)n−1an=n, for all n≥1,then a51+a52+….+a1023 equals
A
-1
B
10
C
0
D
1
Answer
1
Explanation
Solution
The pattern suggests that for each odd term, an=1, and for each even term, an=−1.
Therefore, for n=1,a1=1.
For n=2,a1−a2=2, which implies a2=−1.
For n=3,a1−a2+a3=3, which implies a3=1.
For n=4,a1−a2+a3−a4=4, which implies a4=−1.
This pattern continues, with each odd term being 1 and each even term being -1.
Given this pattern, a51+a52+…+a1022=0, as there are an equal number of 1's and -1's.
Therefore, the value a1023=1, as it is an odd term in the sequence.