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

Let's proceed to step 1:
3 divided by 40 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 40

On to step 2:
40 can be fit into 38 0 times, resulting in a remainder of 38.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 38 to get 38.
Grab the next digit (8) from the dividend, add it to 38, then carry on: 388 / 40

Step 3:
The number 40 fits into 388 9 times, leaving a remainder of 28.
The next digit of our result is 9. 
Result so far: 9.0
Deduct 360 from 388 and we're left with 28.
Include the next digit (1) from the dividend after 28, then repeat: 281 / 40

Let's proceed to step 4:
The number 40 fits into 281 7 times, leaving a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 97.0
Subtracting 280 from 281 leaves us with 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 40

Let's proceed to step 5:
10 divided by 40 is 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 970.0
If we take 0 away from 10, we end up with 10.
Grab the next digit (8) from the dividend, add it to 10, then carry on: 108 / 40

On to step 6:
The number 40 fits into 108 2 times, leaving a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 9702.0
The remainder is 28 after subtracting 80 from 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 7:
40 goes into 280 7 times with a remainder of 0.
Record the quotient 7 as the next digit in the result. 
Result so far: 9702.7
The remainder is 0 after subtracting 280 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 9702.7
If we subtract 0 from 0, we get 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 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 9702.7
Subtracting 0 from 0 leaves us 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.

The final outcome is 9702.7, with a leftover of 0.0.