// XYZ Triplets
function Main(input) {
	input = input.split("\n");
	const n = input[0]

	const L = 105

	const set = {}
	let k;
	for (let x = 1; x < L; x++) {
		for (let y = 1; y < L; y++) {
			for (let z = 1; z < L; z++) {
				k = x*x + y*y + z*z + x*y + y*z + z*x 
				set[k] = set[k] ? set[k]+1 : 1
			}
		}
	}


	for (let i = 1; i < n; i++) {
		console.log(set[i] || 0)
		
	}

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));