open Printf
open Scanf

let rec seq s n =
  if s * s >= n then []
  else
    s :: seq (s + 1) n
  
let solve n =
  let ac = Array.make (n + 1) 0 in
  let ls = seq 1 n in
  List.iter (fun x ->
      List.iter (fun y ->
          List.iter (fun z ->
              let m = x * x + y * y + z * z + x * y + y * z + z * x in
              if m <= n then ac.(m) <- ac.(m) + 1
            ) ls) ls ) ls;
  for i = 1 to n do
    printf "%d\n" ac.(i)
  done

let () =
  scanf "%d " solve
