<image>As shown in the picture, there is a hexagonal point lattice centered around a point, which is the first layer. The second layer has two points on each side, the third layer has three points on each side, and so on. If the total number of points in an $$n$$-layer hexagonal point lattice is $$331$$, then $$n$$ equals ______.