Let's divide 381831 by 40
We want to divide 381831 by 40.

Advancing to step 1:
3 divided by 40 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 40

On to step 2:
40 can be fit into 38 0 times, resulting in a remainder of 38.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 38, we get 38.
Fetch the next digit (1) from the dividend, attach it to 38 and continue: 381 / 40

Let's proceed to step 3:
381 divided by 40 is 9 with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we subtract 360 from 381, we get 21.
Fetch the next digit (8) from the dividend, attach it to 21 and continue: 218 / 40

Advancing to step 4:
40 can be fit into 218 5 times, resulting in a remainder of 18.
The number 5 becomes the next digit in our result. 
Result so far: 95.0
Deduct 200 from 218 and we're left with 18.
Fetch the next digit (3) from the dividend, attach it to 18 and continue: 183 / 40

Step 5:
When dividing 183 by 40, we get 4 with a remainder of 23.
Record the quotient 4 as the next digit in the result. 
Result so far: 954.0
If we take 160 away from 183, we end up with 23.
Include the next digit (1) from the dividend after 23, then repeat: 231 / 40

Step 6:
231 divided by 40 is 5 with a remainder of 31.
Write down 5 as next digit of the result. 
Result so far: 9545.0
The remainder is 31 after subtracting 200 from 231.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 7:
If we divide 310 by 40, we get 7 and a remainder of 30.
Put 7 as the next digit of the answer. 
Result so far: 9545.7
If we take 280 away from 310, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 8:
If we divide 300 by 40, we get 7 and a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 9545.77
Deduct 280 from 300 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The quotient of the division is 9545.77, and the remainder is 0.02.