In a water tank, the water level is at steps below the top, A frog wants to go out of the tank he jumps steps up and two steps down with every move. In how many jumps he will be out of the tank
For solving this
For coming up frogs jump steps up and step down
Consider up jumps as positive while down jumps as negative
So
So in two jumps frogs come two steps up
So for coming steps up, he has to make jumps