human
Value required to be added to N to obtain the sum of first M multiples of K | Function to print the value to be added to N to obtain sum of first M multiples of K.
Store the sum of the first M multiples of K.
Store the value to be added to obtain N.
Input"
Solution in Python:
 ... What is a code to value required to be added to N to obtain the sum of first M multiples of K and the other steps required?
assistant
#Here is code to value required to be added to N to obtain the sum of first M multiples of K and the other steps required.
 def printNumber ( N , K , M ) :
	sum = K * ( M * ( M + 1 ) / 2 )
	return sum - N
N = 17
K = 3
M = 4
print ( int ( printNumber ( N , K , M ) ) )