We're dividing 40738 by 30 
We're looking to find how many times 30 goes into 40738.

Step 1:
When dividing 4 by 30, we get 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 30

On to step 2:
The number 30 fits into 40 1 times, leaving a remainder of 10.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 30 from 40 leaves us with 10.
Append the next digit (7) from the dividend to 10 and continue with: 107 / 30

On to step 3:
30 goes into 107 3 times with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
Deduct 90 from 107 and we're left with 17.
Include the next digit (3) from the dividend after 17, then repeat: 173 / 30

On to step 4:
When dividing 173 by 30, we get 5 with a remainder of 23.
The next digit of our result is 5. 
Result so far: 135.0
Subtract 150 from 173 to get 23.
Append the next digit (8) from the dividend to 23 and continue with: 238 / 30

On to step 5:
If we divide 238 by 30, we get 7 and a remainder of 28.
The next digit of our result is 7. 
Result so far: 1357.0
The remainder is 28 after subtracting 210 from 238.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 6:
If we divide 280 by 30, we get 9 and a remainder of 10.
Use 9 as the next digit of our solution. 
Result so far: 1357.9
Subtract 270 from 280 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 7:
100 divided by 30 is 3 with a remainder of 10.
Put 3 as the next digit of the answer. 
Result so far: 1357.93
If we take 90 away from 100, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
The number 30 fits into 100 3 times, leaving a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 1357.933
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 1357.933 with a remaining 0.001.