1.

For the sequence 0, 1, 2, 3 an is ____________(a) ⌈n/2⌉+⌊n/2⌋(b) ⌈n/2⌉+⌈n/2⌉(c) ⌊n/2⌋+⌊n/2⌋(d) ⌊n/2⌋I have been asked this question during a job interview.The doubt is from Sequences and Summations topic in portion Basic Structures: Sets, Functions, Sequences, Sums and Matrices of Discrete Mathematics

Answer»

Right option is (a) ⌈n/2⌉+⌊n/2⌋

Best explanation: Expand the sequence ⌈n/2⌉+⌊n/2⌋ where a1 is ⌊0.5⌋+⌈0.5⌉ = 1+0 = 1, A2 is ⌊1⌋+⌈1⌉ = 1 + 1 = 2 and so on.



Discussion

No Comment Found

Related InterviewSolutions