Buggy python submission (verdict: Time Limit Exceeded):
import math

def calc(a, b, c):
    return a ** 2 + b ** 2 + c ** 2 + a * b + b * c + c * a

N = int(input())


for i in range(1, N+1):
    ans = 0
    for x in range(1, round(math.sqrt(i))):
        if x**2 > i:
            break
        t1 = i-x**2
        for y in range(1, round(math.sqrt(t1))):
            if y**2 > t1:
                break
            t2 = t1-y**2
            for z in range(1, round(math.sqrt(t2))):
                if z**2 > t2:
                    break
                tmp = calc(x, y, z)
                if tmp > i:
                    break
                if tmp == i:
                    ans += 1
    print(ans)

Fixed submission:
N = int(input())

ans = [0 for _ in range(10**4+50)]

for x in range(1, 105):
    for y in range(1, 105):
        for z in range(1, 105):
            tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
            if tmp < 10**4+50:
                ans[tmp] += 1

for i in range(1, N+1):
    print(ans[i])

Buggy python submission (verdict: Time Limit Exceeded):
import math

def calc(a, b, c):
    return a ** 2 + b ** 2 + c ** 2 + a * b + b * c + c * a

N = int(input())

for i in range(1, N+1):
    ans = 0
    for x in range(1, round(math.sqrt(i))):
        if x**2 > i:
            break
        t1 = i-x**2
        for y in range(1, t1):
            if y**2 > t1:
                break
            t2 = t1-y**2
            for z in range(1, t2):
                if z**2 > t2:
                    break
                tmp = calc(x, y, z)
                if tmp > i:
                    break
                if tmp == i:
                    ans += 1
    print(ans)

Fixed submission:
N = int(input())

ans = [0 for _ in range(10**4+50)]

for x in range(1, 105):
    for y in range(1, 105):
        for z in range(1, 105):
            tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
            if tmp < 10**4+50:
                ans[tmp] += 1

for i in range(1, N+1):
    print(ans[i])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for i in range(1, N+1):
    ans = 0
    for x in range(1, round(math.sqrt(i))):
        for y in range(1, round(math.sqrt(i))):
            for z in range(1, round(math.sqrt(i))):
                tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
                if tmp == i:
                    ans += 1
    print(ans)

Fixed submission:
N = int(input())

ans = [0 for _ in range(10**4+50)]

for x in range(1, 105):
    for y in range(1, 105):
        for z in range(1, 105):
            tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
            if tmp < 10**4+50:
                ans[tmp] += 1

for i in range(1, N+1):
    print(ans[i])

Buggy python submission (verdict: Runtime Error):
import math
N = int(input())
for i in range(1, N+1):
    ans = 0
    for x in range(1, math.sqrt(i)):
        for y in range(1, math.sqrt(i)):
            for z in range(1, math.sqrt(i)):
                tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
                if tmp == i:
                    ans += 1
    print(ans)

Fixed submission:
N = int(input())

ans = [0 for _ in range(10**4+50)]

for x in range(1, 105):
    for y in range(1, 105):
        for z in range(1, 105):
            tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
            if tmp < 10**4+50:
                ans[tmp] += 1

for i in range(1, N+1):
    print(ans[i])

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
for i in range(1, N+1):
    ans = 0
    for x in range(1, i//2):
        for y in range(1, i//2):
            for z in range(1, i//2):
                tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
                if tmp == i:
                    ans += 1
    print(ans)

Fixed submission:
N = int(input())

ans = [0 for _ in range(10**4+50)]

for x in range(1, 105):
    for y in range(1, 105):
        for z in range(1, 105):
            tmp = x**2 + y**2 + z**2 + x*y + y*z + z*x
            if tmp < 10**4+50:
                ans[tmp] += 1

for i in range(1, N+1):
    print(ans[i])