跳蚤路径计数
How many different paths can the flea travel by?
题目详情
一只跳蚤要从两点之间前进,总距离 100 英寸。它每次只能朝同一方向跳 1 英寸或 2 英寸。
问:它一共有多少种不同的跳法(路径)能恰好走完 100 英寸?
英文原题
A flea is going between two points which are 100 inches apart by jumping (always in the same direction) either one inch or two inches at a time. How many different paths can the flea travel by?
解析
设 为走完 英寸的跳法数。
最后一步若跳 1 英寸,则前面是走完 的任意跳法;若跳 2 英寸,则前面是走完 的任意跳法,因此
所以 是斐波那契数列,且 。
所求为 。
英文解析
Let be the number of ways to complete a jump of inches.
If the final jump is 1 inch, then the preceding part is any way to complete a jump of inches; if the final jump is 2 inches, then the preceding part is any way to complete a jump of inches. Therefore,
Thus, is the Fibonacci sequence, and .
The required value is .