#include<stdio.h>
int main()
{
int n, m, sum, ave, sum1, ave1;
int i, j, a, b;
while( scanf( "%d%d", &n, &m ) == 2 )
{
if( n <= m )
{
sum = 2*n + n*(n-1);
ave = sum / n;
printf( "%d\n", ave );
}
else if( n > m )
{
a = n / m;
b = n % m;
if( b == 0 )
{
for( i = 0 ; i < a; i++ )
{
sum = ( 2+ m*i*2 )*m + m*(m-1);
ave = sum / m;
printf( i == (a-1)?"%d\n":"%d ", ave );
}
}
else if( b != 0 )
{
for( i = 0 ; i < a; i++ )
{
sum = ( 2+ m*i*2 )*m + m*(m-1);
ave = sum / m;
printf( "%d ", ave );
}
sum1 = ( 2+ m*a*2 )*b + b*(b-1);
ave1 = sum1 / b ;
printf( "%d\n", ave1 );
}
}
}
}