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

n = int(input())
 
def calc(n):
    if n < 6:
        return 0
    if n == 6:
        return 1
    if 6 < n < 11:
        return 0
    if n == 11:
        return 3
    if 11 < n < 17:
        return 0
    if n == 17:
        return 3
    if n == 18:
        return 3
    ans = 0
    for x in range(1, int(sqrt(n))):
        for y in range(1, int(sqrt(n))):
            for z in range(1, int(sqrt(n))):
                if x**2 + y**2 + z**2 + x*y + y*z + z*x == n:
                    ans += 1
 
    return ans
 
for i in range(1, n+1):
    print(calc(i))


Fixed submission:
n = int(input())
ans = [0 for _ in range(n+1)]
def calc(n):
    for x in range(1, int(n**0.5)+1):
        for y in range(1, int(n**0.5)+1):
            for z in range(1, int(n**0.5)+1):
                v = x**2 + y**2 + z**2 + x*y + y*z + z*x
                if v < n+1:
                    ans[v] += 1

calc(n)
for i in range(n):
    print(ans[i+1])

Buggy python submission (verdict: Runtime Error):
from math import sqrt

n = int(input())
 
def calc(n):
    if n < 6:
        return 0
    if n == 6:
        return 1
    if 6 < n < 11:
        return 0
    if n == 11:
        return 3
    if 11 < n < 17:
        return 0
    if n == 17:
        return 3
    if n == 18:
        return 3
    ans = 0
    for x in range(1, sqrt(n)//1):
        for y in range(1, sqrt(n)//1):
            for z in range(1, sqrt(n)//1):
                if x**2 + y**2 + z**2 + x*y + y*z + z*x == n:
                    ans += 1
 
    return ans
 
for i in range(1, n+1):
    print(calc(i))


Fixed submission:
n = int(input())
ans = [0 for _ in range(n+1)]
def calc(n):
    for x in range(1, int(n**0.5)+1):
        for y in range(1, int(n**0.5)+1):
            for z in range(1, int(n**0.5)+1):
                v = x**2 + y**2 + z**2 + x*y + y*z + z*x
                if v < n+1:
                    ans[v] += 1

calc(n)
for i in range(n):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

def calc(n):
    if n < 6:
        return 0
    ans = 0
    for x in range(1, int(n**0.5)):
        for y in range(1, int(n**0.5)):
            for z in range(1, int(n**0.5)):
                if x**2 + y**2 + z**2 + x*y + y*z + z*x == n:
                    ans += 1

    return ans

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


Fixed submission:
n = int(input())
ans = [0 for _ in range(n+1)]
def calc(n):
    for x in range(1, int(n**0.5)+1):
        for y in range(1, int(n**0.5)+1):
            for z in range(1, int(n**0.5)+1):
                v = x**2 + y**2 + z**2 + x*y + y*z + z*x
                if v < n+1:
                    ans[v] += 1

calc(n)
for i in range(n):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

def calc(n):
    if n < 6:
        return 0
    ans = 0
    for x in range(1, int(n**0.5)):
        for y in range(1, int(n**0.5)):
            for z in range(1, int(n**0.5)):
                if x**2 + y**2 + z**2 + x*y + y*z + z*x == n:
                    ans += 1

    return ans

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


Fixed submission:
n = int(input())
ans = [0 for _ in range(n+1)]
def calc(n):
    for x in range(1, int(n**0.5)+1):
        for y in range(1, int(n**0.5)+1):
            for z in range(1, int(n**0.5)+1):
                v = x**2 + y**2 + z**2 + x*y + y*z + z*x
                if v < n+1:
                    ans[v] += 1

calc(n)
for i in range(n):
    print(ans[i+1])