The following patterns are made using small squares
Write an expression for the number of small squares in pattern n.