381047 divided by 40 
Let's see how many times 40 fits into 381047.

Let's proceed to step 1:
If we divide 3 by 40, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 40

Let's proceed to step 2:
If we divide 38 by 40, we get 0 and a remainder of 38.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 38 after subtracting 0 from 38.
Bring next digit (1) of the dividend behind the 38 and repeat the process: 381 / 40

Step 3:
If we divide 381 by 40, we get 9 and a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 9.0
Deduct 360 from 381 and we're left with 21.
Append the next digit (0) from the dividend to 21 and continue with: 210 / 40

Advancing to step 4:
The number 40 fits into 210 5 times, leaving a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 95.0
Subtracting 200 from 210 leaves us with 10.
Take the next digit (4) from the dividend and append it to 10, then repeat: 104 / 40

Advancing to step 5:
40 can be fit into 104 2 times, resulting in a remainder of 24.
The next digit of our result is 2. 
Result so far: 952.0
Subtract 80 from 104 to get 24.
Append the next digit (7) from the dividend to 24 and continue with: 247 / 40

Step 6:
40 goes into 247 6 times with a remainder of 7.
Put 6 as the next digit of the answer. 
Result so far: 9526.0
If we take 240 away from 247, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 7:
When dividing 70 by 40, we get 1 with a remainder of 30.
Put 1 as the next digit of the answer. 
Result so far: 9526.1
If we subtract 40 from 70, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 8:
If we divide 300 by 40, we get 7 and a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 9526.17
The remainder is 20 after subtracting 280 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 9526.175
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 9526.175
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 9526.175
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 9526.175 with a balance of 0.0.