def main(): import sys from collections import defaultdict N, M = map(int, sys.stdin.readline().split()) # Initialize DP: dp[T][S] = count dp = defaultdict(lambda: defaultdict(int)) dp[0][0] = 1 # Process each of the four variables for _ in range(4): new_dp = defaultdict(lambda: defaultdict(int)) for T in dp: for S in dp[T]: count = dp[T][S] for x in range(0, M + 1): new_T = T + x new_S = S + x * x new_dp[new_T][new_S] += count dp = new_dp # Compute the result f = [0] * (N + 1) for T in dp: for S in dp[T]: E = (T * T + S) // 2 if E <= N: f[E] += dp[T][S] # Output the result for e in f: print(e) if __name__ == '__main__': main()