40042297 ÷ 367 
We want to divide 40042297 by 367.

Step 1:
367 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 367

Step 2:
40 divided by 367 is 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Include the next digit (0) from the dividend after 40, then repeat: 400 / 367

Moving on to step 3:
400 divided by 367 is 1 with a remainder of 33.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 367 from 400 leaves us with 33.
Take the next digit (4) from the dividend and append it to 33, then repeat: 334 / 367

Step 4:
367 goes into 334 0 times with a remainder of 334.
The next digit of our result is 0. 
Result so far: 10.0
Subtract 0 from 334 to get 334.
Take the next digit (2) from the dividend and append it to 334, then repeat: 3342 / 367

Let's proceed to step 5:
If we divide 3342 by 367, we get 9 and a remainder of 39.
Write down 9 as next digit of the result. 
Result so far: 109.0
Deduct 3303 from 3342 and we're left with 39.
Bring next digit (2) of the dividend behind the 39 and repeat the process: 392 / 367

Moving on to step 6:
367 goes into 392 1 times with a remainder of 25.
Record the quotient 1 as the next digit in the result. 
Result so far: 1091.0
If we take 367 away from 392, we end up with 25.
Bring next digit (9) of the dividend behind the 25 and repeat the process: 259 / 367

Moving on to step 7:
If we divide 259 by 367, we get 0 and a remainder of 259.
Use 0 as the next digit of our solution. 
Result so far: 10910.0
Subtracting 0 from 259 leaves us with 259.
Include the next digit (7) from the dividend after 259, then repeat: 2597 / 367

Step 8:
If we divide 2597 by 367, we get 7 and a remainder of 28.
The next digit of our result is 7. 
Result so far: 109107.0
The remainder is 28 after subtracting 2569 from 2597.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

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

Going ahead to step 10:
If we divide 2800 by 367, we get 7 and a remainder of 231.
Put 7 as the next digit of the answer. 
Result so far: 109107.07
Subtract 2569 from 2800 to get 231.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2310, and continue the process.

Let's proceed to step 11:
The number 367 fits into 2310 6 times, leaving a remainder of 108.
Use 6 as the next digit of our solution. 
Result so far: 109107.076
Deduct 2202 from 2310 and we're left with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Going ahead to step 12:
1080 divided by 367 is 2 with a remainder of 346.
Record the quotient 2 as the next digit in the result. 
Result so far: 109107.0762
If we take 734 away from 1080, we end up with 346.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3460, and continue the process.

On to step 13:
3460 divided by 367 is 9 with a remainder of 157.
Put 9 as the next digit of the answer. 
Result so far: 109107.07629
Subtracting 3303 from 3460 leaves us with 157.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1570, and continue the process.

Moving on to step 14:
367 can be fit into 1570 4 times, resulting in a remainder of 102.
Write down 4 as next digit of the result. 
Result so far: 109107.076294
If we take 1468 away from 1570, we end up with 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Going ahead to step 15:
367 goes into 1020 2 times with a remainder of 286.
Write down 2 as next digit of the result. 
Result so far: 109107.0762942
Subtracting 734 from 1020 leaves us with 286.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2860, and continue the process.

Going ahead to step 16:
When dividing 2860 by 367, we get 7 with a remainder of 291.
Record the quotient 7 as the next digit in the result. 
Result so far: 109107.07629427
Subtract 2569 from 2860 to get 291.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2910, and continue the process.

The final outcome is 109107.07629427, with a leftover of 2.91e-07.