While studying the properties of polygons, a mathematician comes across the following series. Find the next digit in the series.