A 1x6 square unit rectangular grid has to be covered with six 1x1 square-unit tiles. There are three colors to choose from. The grid cannot be rotated.
a) In how many ways can this task be done if no two neighboring tiles are the same color?
b) In how many ways can this task be done if at least one pair of neighboring tiles are the same color?