Dynamic Programming by Hand
Source: 2018 AIME I #14
March 7, 2018
2018 AIME IAMCAIMEAIME I
Problem Statement
Let be a heptagon. A frog starts jumping at vertex . From any vertex of the heptagon except , the frog may jump to either of the two adjacent vertices. When it reaches vertex , the frog stops and stays there. Find the number of distinct sequences of jumps of no more than jumps that end at .