public static List<List<Integer>> getAllPolygonals() {
		List<List<Integer>> polygonals = new ArrayList<List<Integer>>();
		for(int i = 0; i < 6; i++)
			polygonals.add(new ArrayList<Integer>());
		
		for(int i = 1000; i <= 9999; i++) {
			if(isTriangle(i))	polygonals.get(0).add(i);
			if(isSquare(i))		polygonals.get(1).add(i);
			if(isPentagonal(i))	polygonals.get(2).add(i);
			if(isHexagonal(i))	polygonals.get(3).add(i);
			if(isHeptagonal(i))	polygonals.get(4).add(i);
			if(isOctagonal(i))	polygonals.get(5).add(i);
		}
		
		return polygonals;
	}