Let's divide 40765 by 30
Let's see how many times 30 fits into 40765.

Step 1:
30 goes into 4 0 times with a remainder of 4.
Record the quotient 0 as the next digit in 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

Going ahead to step 2:
If we divide 40 by 30, we get 1 and a remainder of 10.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 30 from 40 to get 10.
Append the next digit (7) from the dividend to 10 and continue with: 107 / 30

On to step 3:
107 divided by 30 is 3 with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 13.0
If we take 90 away from 107, we end up with 17.
Bring next digit (6) of the dividend behind the 17 and repeat the process: 176 / 30

Advancing to step 4:
The number 30 fits into 176 5 times, leaving a remainder of 26.
Use 5 as the next digit of our solution. 
Result so far: 135.0
If we subtract 150 from 176, we get 26.
Grab the next digit (5) from the dividend, add it to 26, then carry on: 265 / 30

Moving on to step 5:
When dividing 265 by 30, we get 8 with a remainder of 25.
The number 8 becomes the next digit in our result. 
Result so far: 1358.0
The remainder is 25 after subtracting 240 from 265.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 6:
30 goes into 250 8 times with a remainder of 10.
Record the quotient 8 as the next digit in the result. 
Result so far: 1358.8
The remainder is 10 after subtracting 240 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 7:
The number 30 fits into 100 3 times, leaving a remainder of 10.
The next digit of our result is 3. 
Result so far: 1358.83
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.

Let's proceed to step 8:
30 goes into 100 3 times with a remainder of 10.
Write down 3 as next digit of the result. 
Result so far: 1358.833
Subtracting 90 from 100 leaves us 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.

The final outcome is 1358.833, with a leftover of 0.001.