import math

n=int(eval(input()))

z=0

d=0

ans=0

for i in range(1,n+1):

  for x in range(1,int(math.sqrt(n)+1)):

    for y in range(1,int(math.sqrt(n)+1)):

      d=x*x+y*y+2*x*y-4*(x*x+y*y+x*y-i)

      if d<0:

        continue

      z=(math.sqrt(d)-(x+y))/2

      if z.is_integer() and z>=1:

        ans+=1

      else:

        continue

  print(ans)

  ans=0

    
n=int(eval(input()))

v=[0]*10001

for x in range(1,101):

  for y in range(1,101):

    for z in range(1,101):

      d=x*x+y*y+z*z+x*y+x*z+y*z

      if d>10000:

        continue

      else:

        v[d]+=1

for i in range(n):

  print((v[i+1]))
import math

n = int(eval(input()))
z = 0
d = 0
ans = 0
for i in range(1, n + 1):
    for x in range(1, int(math.sqrt(n) + 1)):
        for y in range(1, int(math.sqrt(n) + 1)):
            d = x * x + y * y + 2 * x * y - 4 * (x * x + y * y + x * y - i)
            if d < 0:
                continue
            z = (math.sqrt(d) - (x + y)) / 2
            if z.is_integer() and z >= 1:
                ans += 1
            else:
                continue
    print(ans)
    ans = 0

n = int(eval(input()))
v = [0] * 10001
for x in range(1, 101):
    for y in range(1, 101):
        for z in range(1, 101):
            d = x * x + y * y + z * z + x * y + x * z + y * z
            if d > 10000:
                continue
            else:
                v[d] += 1
for i in range(n):
    print((v[i + 1]))

-import math - -z = 0 -d = 0 -ans = 0 -for i in range(1, n + 1): -    for x in range(1, int(math.sqrt(n) + 1)): -        for y in range(1, int(math.sqrt(n) + 1)): -            d = x * x + y * y + 2 * x * y - 4 * (x * x + y * y + x * y - i) -            if d < 0: +v = [0] * 10001 +for x in range(1, 101): +    for y in range(1, 101): +        for z in range(1, 101): +            d = x * x + y * y + z * z + x * y + x * z + y * z +            if d > 10000: -            z = (math.sqrt(d) - (x + y)) / 2 -            if z.is_integer() and z >= 1: -                ans += 1 -                continue -    print(ans) -    ans = 0 +                v[d] += 1 +for i in range(n): +    print((v[i + 1]))