7138 ÷ 9 = 793 R1
We're going to perform division on 7138 with 9 as the divisor.

Step 1:
9 goes into 7 0 times with a remainder of 7.
Write down 0 as next digit of of the result. 
Result so far: 0
Subtract 0 from 7 to get 7.
Bring next digit (1) of the dividend behind the 7 and repeat the process: 71 / 9

Step 2:
9 goes into 71 7 times with a remainder of 8.
Write down 7 as next digit of of the result. 
Result so far: 7
Subtract 63 from 71 to get 8.
Bring next digit (3) of the dividend behind the 8 and repeat the process: 83 / 9

Step 3:
9 goes into 83 9 times with a remainder of 2.
Write down 9 as next digit of of the result. 
Result so far: 79
Subtract 81 from 83 to get 2.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 9

Step 4:
9 goes into 28 3 times with a remainder of 1.
Write down 3 as next digit of of the result. 
Result so far: 793
Subtract 27 from 28 to get 1.

The final result is 793 with a remainder of 1.