Ankita has to climb 5 stairs starting at the ground, while respecting the…

GATE · 2023 · GG · General AptitudeGATE · 2023 · IN · General AptitudeGATE · 2023 · MA · General AptitudeGATE · 2023 · PE · General AptitudeGATE · 2023 · XE · General AptitudeGATE · 2023 · XL · General Aptitude

Ankita has to climb 5 stairs starting at the ground, while respecting the following rules:

1. At any stage, Ankita can move either one or two stairs up.

2. At any stage, Ankita cannot move to a lower step.

Let F(N) denote the number of possible ways in which Ankita can reach the Nth stair. For example, F(1) = 1, F(2) = 2, F(3) = 3.

The value of F(5) is _______.

  1. A.

    8

  2. B.

    7

  3. C.

    6

  4. D.

    5

Attempted by 4 students.

Sign up free to check your answer

Sign up free

Explore the full course: Aptitude For Gate

Loading lesson…