unittest
{
	assert( [ "2 10 20" ].parse.expand.solve == "30\n50\n90\n170\n330\n650\n1290\n2570\n5130\n10250" );
	assert( [ "4 40 60" ].parse.expand.solve == "200\n760\n3000\n11960\n47800\n191160\n764600\n3058360\n12233400\n48933560" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto rdx = input.front.split.to!( long[] );
	return tuple( rdx[ 0 ], rdx[ 1 ], rdx[ 2 ] );
}

auto solve( long r, long d, long xa )
{
	auto xs = new long[]( 11 );
	xs[ 0 ] = xa;
	for( auto i = 1L; i < xs.length; i++ )
	{
		xs[ i ] = r * xs[ i - 1 ] - d;
	}
	return xs[ 1 .. $ ].to!( string[] ).join( "\n" );
}
