We divide 40385642 by 350
Our goal is to divide 40385642 by 350.

Moving on to step 1:
If we divide 4 by 350, we get 0 and a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 350

Moving on to step 2:
When dividing 40 by 350, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Take the next digit (3) from the dividend and append it to 40, then repeat: 403 / 350

Step 3:
350 can be fit into 403 1 times, resulting in a remainder of 53.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 53 after subtracting 350 from 403.
Grab the next digit (8) from the dividend, add it to 53, then carry on: 538 / 350

Moving on to step 4:
538 divided by 350 is 1 with a remainder of 188.
The next digit of our result is 1. 
Result so far: 11.0
If we subtract 350 from 538, we get 188.
Include the next digit (5) from the dividend after 188, then repeat: 1885 / 350

On to step 5:
350 goes into 1885 5 times with a remainder of 135.
Put 5 as the next digit of the answer. 
Result so far: 115.0
Subtract 1750 from 1885 to get 135.
Take the next digit (6) from the dividend and append it to 135, then repeat: 1356 / 350

Moving on to step 6:
When dividing 1356 by 350, we get 3 with a remainder of 306.
Write down 3 as next digit of the result. 
Result so far: 1153.0
The remainder is 306 after subtracting 1050 from 1356.
Take the next digit (4) from the dividend and append it to 306, then repeat: 3064 / 350

Let's proceed to step 7:
The number 350 fits into 3064 8 times, leaving a remainder of 264.
Record the quotient 8 as the next digit in the result. 
Result so far: 11538.0
Subtract 2800 from 3064 to get 264.
Take the next digit (2) from the dividend and append it to 264, then repeat: 2642 / 350

Going ahead to step 8:
The number 350 fits into 2642 7 times, leaving a remainder of 192.
The next digit of our result is 7. 
Result so far: 115387.0
Subtract 2450 from 2642 to get 192.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1920, and continue the process.

Going ahead to step 9:
350 goes into 1920 5 times with a remainder of 170.
The next digit of our result is 5. 
Result so far: 115387.5
Subtracting 1750 from 1920 leaves us with 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Moving on to step 10:
If we divide 1700 by 350, we get 4 and a remainder of 300.
Record the quotient 4 as the next digit in the result. 
Result so far: 115387.54
If we take 1400 away from 1700, we end up with 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

Moving on to step 11:
350 can be fit into 3000 8 times, resulting in a remainder of 200.
Put 8 as the next digit of the answer. 
Result so far: 115387.548
The remainder is 200 after subtracting 2800 from 3000.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

Moving on to step 12:
2000 divided by 350 is 5 with a remainder of 250.
Record the quotient 5 as the next digit in the result. 
Result so far: 115387.5485
Subtracting 1750 from 2000 leaves us with 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Moving on to step 13:
If we divide 2500 by 350, we get 7 and a remainder of 50.
Use 7 as the next digit of our solution. 
Result so far: 115387.54857
The remainder is 50 after subtracting 2450 from 2500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Going ahead to step 14:
500 divided by 350 is 1 with a remainder of 150.
The next digit of our result is 1. 
Result so far: 115387.548571
Subtract 350 from 500 to get 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Step 15:
The number 350 fits into 1500 4 times, leaving a remainder of 100.
Write down 4 as next digit of the result. 
Result so far: 115387.5485714
If we subtract 1400 from 1500, we get 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1000, and continue the process.

Moving on to step 16:
The number 350 fits into 1000 2 times, leaving a remainder of 300.
The next digit of our result is 2. 
Result so far: 115387.54857142
If we take 700 away from 1000, we end up with 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

The final outcome is 115387.54857142, with a leftover of 3e-07.