<image>In the figure, black pieces of the same size are placed on the sides of a regular polygon.

The $$4$$th figure needs __ _ _ _ _ _ _ _ black pieces$${.}$$ Following this pattern, the number of black pieces needed for the $$n$$th figure is _ _ _ _ _ _ __ pieces$${.}($$Expressed in an algebraic formula containing $$n$$)$$