N,K=gets.chomp.split(' ').map{|n| n.to_i}
A = Array.new(10**6+1){0}

def getsum(a,b,c)
	return ((a+b)**2+(b+c)**2+(c+a)**2)/2
end
for a in 1..(10**2)
	for b in 1..a
		for c in 1..b
			if(a==b && b==c)
				A[getsum(a,b,c)] += 1
			elsif(a==b || b==c || c==a)
				A[getsum(a,b,c)] += 3
			else
				A[getsum(a,b,c)] += 6
			end
		end
	end
end

for i in 1..(N)
	puts A[i]
end

