4.Consider parking motorcycles and compact cars in a row of spaces where each cycle
uires one space and each compact needs two. Find and solve a recurrence relation
number of ways to park motorcycles and compact cars in a row of n spaces
申論題內容
(a) if all cycles
are identical in appearance, as are the cars, and we want to use up all the n spaces.