If I have a straight line consisting of n points, and I have to get from the first to the last point, using any combination of "hops" along points, how do I calculate how many possible combinations there are?
Example: a line with points A, B, C. I can either go from A -> C, or A -> B -> C. That's two possible combinations.