N - 3 * (10 - 1) = N - 21

define the domain and range for this function

The domain for this function is all real numbers, since there are no restrictions or limitations on the input (N).

The range for this function is also all real numbers, since any real number can be obtained as a result of the equation, depending on the value of N.