def pad_size(n, k):
 if (n % k):
  return (k - (n % k))
 else:
  return 0

def pad_size ( n , k ) : if ( n % k ) : return ( k - ( n % k ) ) else : return 0
the smallest number that has to be added to n to equal a multiple of k .