<image> As shown in the figure, each pattern is composed of squares of the same size. According to this rule, the total number of such squares in the $$n$$-th pattern can be expressed using an algebraic expression in terms of $$n$$ as ______ .