Suppose we have a wall of n*3 size, and bricks of size 1*3, 2*3, and 3*3, the bricks can be put horizontally and vertically, what is the total number of ways to arrange the bricks to fill the wall? What is the recurrence relation of this problem?
I think it is T(n) = T(n-1)+ 2T(n-2)+ 7T(n-3), because for T(n-2) we have 1x3+1x3 or 2x3 so 2T(n-2). For three, 1x3+1x3+1x3, 1x3+2x3 or 2x3+1x3 and same for horizontal, plus 3x3 so we have 7dp(n-3), is this correct?
Thank you!