#include<stdio.h>

int main() {
	//重复项：n+1个数，选取k或更多项
	//k时：0到（k-1）的和，到n-k到n
	//k+1，同理
	int temp1 = 0,temp2 = 0;
	long long count = 0;
	int n = 0, k = 0;
	scanf("%d %d", &n, &k);
	int i;
	for ( i = 0; i < k; i++) {
		temp1 += i;
		temp2 += n - i;
	}
	count += (temp2 - temp1) + 1;
	printf("%lld\n", count);
	for (;temp1!=temp2 && i <= n ; i++) {
		temp1 += i, temp2 += n - i;
		count += (temp2 - temp1) + 1;
		printf("%lld\n", count);
	}
	printf("%lld\n", count);
}