Math Homework Help

This question, I am having trouble understanding the recurrence relation,

Katie has three outfit choices while social distancing. Each day she wears either pajamas,sweatpants, or jeans. Her only rule is that she never wears jeans on three or more days in a row. Let an represent the number of ways Katie can choose outfits across 1% days (where n 2 0). (a) Find a recurrence relation for an(b) What are the initial conditions for the recurrence relation from part (a)? Note: To earn full credit1 you must have the minimum number of initial conditions asrequired by your recurrence relation from part (a).

 
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"