Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for n in range(1,N+1):
    r_n = math.floor(math.sqrt(n))
    count = 0
    start = math.floor(r_n/3)
    if(n >= 6):
        for x in range(start,r_n):
            for y in range(1,x+1):
                for z in range(1,y+1):
                    if (x*x + y*y + z*z + x*y + y*z + z*x) == n:
                        if (x == y and y ==z):
                            count+=1
                        elif(x == y or y==z or z == x):
                            count+=3
                        else:
                            count+=6
    print(count)

Fixed submission:
import math
N = int(input())
ans = [0 for _ in range(10050)]
r_n = math.floor(math.sqrt(N))
count = 0
for x in range(1,r_n):
    for y in range(1,r_n):
        for z in range(1,r_n):
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < 10050:
                ans[n]+=1
for i in range(N):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for n in range(1,N+1):
    r_n = math.floor(math.sqrt(n))
    count = 0
    if(n >= 6):
        for x in range(1,r_n):
            for y in range(1,x+1):
                for z in range(1,y+1):
                    if (x*x + y*y + z*z + x*y + y*z + z*x) == n:
                        if (x == y and y ==z):
                            count+=1
                        elif(x == y or y==z or z == x):
                            count+=3
                        else:
                            count+=6
    print(count)

Fixed submission:
import math
N = int(input())
ans = [0 for _ in range(10050)]
r_n = math.floor(math.sqrt(N))
count = 0
for x in range(1,r_n):
    for y in range(1,r_n):
        for z in range(1,r_n):
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < 10050:
                ans[n]+=1
for i in range(N):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for n in range(1,N+1):
    r_n = math.floor(math.sqrt(n))
    count = 0
    if(n >= 6):
        for x in range(1,r_n):
            for y in range(1,x+1):
                for z in range(1,y+1):
                    if (x*x + y*y + z*z + x*y + y*z + z*x) == n:
                        if (x == y and y ==z):
                            count+=1
                        elif(x == y or y==z or z == x):
                            count+=3
                        else:
                            count+=6
    print(count)

Fixed submission:
import math
N = int(input())
ans = [0 for _ in range(10050)]
r_n = math.floor(math.sqrt(N))
count = 0
for x in range(1,r_n):
    for y in range(1,r_n):
        for z in range(1,r_n):
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < 10050:
                ans[n]+=1
for i in range(N):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for n in range(1,N+1):
    r_n = math.floor(math.sqrt(n))
    count = 0
    if(n >= 6):
        for x in range(1,r_n):
            y_n = min(r_n,math.floor(math.sqrt(n-x*x)))
            for y in range(1,y_n):
                z_n = min(y_n,math.floor(math.sqrt(n-(x*x+y*y))))
                for z in range(1,z_n):
                    if (x*x + y*y + z*z + x*y + y*z + z*x) == n:
                        count+=1
    print(count)

Fixed submission:
import math
N = int(input())
ans = [0 for _ in range(10050)]
r_n = math.floor(math.sqrt(N))
count = 0
for x in range(1,r_n):
    for y in range(1,r_n):
        for z in range(1,r_n):
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < 10050:
                ans[n]+=1
for i in range(N):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for n in range(1,N+1):
    r_n = math.floor(math.sqrt(n))
    count = 0
    if(n >= 6):
        for x in range(1,r_n):
            for y in range(1,r_n):
                for z in range(1,r_n):
                    if (x*x + y*y + z*z + x*y + y*z + z*x) == n:
                        count+=1
    print(count)

Fixed submission:
import math
N = int(input())
ans = [0 for _ in range(10050)]
r_n = math.floor(math.sqrt(N))
count = 0
for x in range(1,r_n):
    for y in range(1,r_n):
        for z in range(1,r_n):
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < 10050:
                ans[n]+=1
for i in range(N):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for n in range(1,N+1):
    r_n = math.floor(math.sqrt(n))
    count = 0
    for x in range(1,r_n):
        for y in range(1,r_n):
            for z in range(1,r_n):
                if (x*x + y*y + z*z + x*y + y*z + z*x) == n:
                    count+=1
    print(count)

Fixed submission:
import math
N = int(input())
ans = [0 for _ in range(10050)]
r_n = math.floor(math.sqrt(N))
count = 0
for x in range(1,r_n):
    for y in range(1,r_n):
        for z in range(1,r_n):
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < 10050:
                ans[n]+=1
for i in range(N):
    print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
for n in range(1,N+1):
    r_n = math.floor(math.sqrt(n))
    count = 0
    for x in range(1,r_n):
        for y in range(1,r_n):
            for z in range(1,r_n):
                if (x*x + y*y + z*z + x*y + y*z + z*x) == n:
                    count+=1
    print(count)

Fixed submission:
import math
N = int(input())
ans = [0 for _ in range(10050)]
r_n = math.floor(math.sqrt(N))
count = 0
for x in range(1,r_n):
    for y in range(1,r_n):
        for z in range(1,r_n):
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < 10050:
                ans[n]+=1
for i in range(N):
    print(ans[i+1])