import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); sc.close(); int mod = 1000000007; PrintWriter pw = new PrintWriter(System.out); pw.println(n); if (m >= 2) { long n2 = n / 2; pw.println((n2 + 1) * (n2 - 1 + n % 2)); } for (int i = 3; i <= m; i++) { int a = n / i; int b = n % i; if (a == 0) { pw.println(0); } else if (b == i - 1) { long val1 = power(a + 1, b, mod); long val2 = a; long ans = val1 * val2 % mod; pw.println(ans); } else { long val1 = power(a + 1, b + 1, mod); long val2 = power(a, i - b - 2, mod); long val3 = a - 1; long ans = val1 * val2 % mod * val3 % mod; pw.println(ans); } } pw.flush(); } static long power(long x, long n, int m) { if (n == 0) { return 1; } long val = power(x, n / 2, m); val = val * val % m; if (n % 2 == 1) { val = val * x % m; } return val; } }