跳 1 或 2 英寸走完 100 英寸:路径数
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 英寸,则前面是走完 的任意跳法,因此
所以 是斐波那契数列,且 。
所求为 。