Given an unlimited supply of M & M's and of bugglegum, which cost one cent each, and of sourballs, peppermints, and gumdrops, which cost two cents each. You are going to buy n cents worth of candy, one piece at atime. Letan be the number of selection sequences that end up costing n cents.Soa2 = 7 ( mm,mb, bb, bm, s, p, g). Order matters.
Find a recursion relationfor an. Solve the recursion. Find a formula for an.