兔子跳台阶 IV
Rabbit Hop IV
题目详情
一只兔子从楼梯前的地面出发,要到达第 10 阶的顶端。
每次跳跃它可以向上跳任意多阶,但每次跳的阶数必须严格大于 1(即每次至少跳 2 阶)。
问:从地面到达第 10 阶顶端共有多少条不同路径?
A rabbit starts at the floor in front of a staircase of stairs. The rabbit can hop up any amount of steps strictly larger than at each movement. In particular, this means that the rabbit can't go up a one stair staircase. How many distinct paths are there from the floor to the top of the staircase (i.e. to the top of the th stair)?
解析
令 表示到达第 阶的路径数。
由于每次至少跳 2 阶,最后一步可能来自 :
并取 (空路径),。
由此可推出递推 (),且 。
于是 等于斐波那契数列的平移:。
所以答案为 。