Let's divide 40047145 by 342
We want to figure out the number of times 40047145 can be divided by 342.

On to step 1:
342 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 342

Step 2:
342 can be fit into 40 0 times, resulting in a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Grab the next digit (0) from the dividend, add it to 40, then carry on: 400 / 342

Going ahead to step 3:
The number 342 fits into 400 1 times, leaving a remainder of 58.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 342 from 400 to get 58.
Take the next digit (4) from the dividend and append it to 58, then repeat: 584 / 342

Going ahead to step 4:
342 goes into 584 1 times with a remainder of 242.
Put 1 as the next digit of the answer. 
Result so far: 11.0
If we take 342 away from 584, we end up with 242.
Fetch the next digit (7) from the dividend, attach it to 242 and continue: 2427 / 342

Step 5:
If we divide 2427 by 342, we get 7 and a remainder of 33.
Put 7 as the next digit of the answer. 
Result so far: 117.0
The remainder is 33 after subtracting 2394 from 2427.
Bring next digit (1) of the dividend behind the 33 and repeat the process: 331 / 342

Going ahead to step 6:
331 divided by 342 is 0 with a remainder of 331.
The number 0 becomes the next digit in our result. 
Result so far: 1170.0
If we take 0 away from 331, we end up with 331.
Grab the next digit (4) from the dividend, add it to 331, then carry on: 3314 / 342

Moving on to step 7:
3314 divided by 342 is 9 with a remainder of 236.
The number 9 becomes the next digit in our result. 
Result so far: 11709.0
If we take 3078 away from 3314, we end up with 236.
Fetch the next digit (5) from the dividend, attach it to 236 and continue: 2365 / 342

On to step 8:
342 can be fit into 2365 6 times, resulting in a remainder of 313.
Record the quotient 6 as the next digit in the result. 
Result so far: 117096.0
If we subtract 2052 from 2365, we get 313.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3130, and continue the process.

Let's proceed to step 9:
When dividing 3130 by 342, we get 9 with a remainder of 52.
Put 9 as the next digit of the answer. 
Result so far: 117096.9
Subtracting 3078 from 3130 leaves us with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 10:
342 goes into 520 1 times with a remainder of 178.
Use 1 as the next digit of our solution. 
Result so far: 117096.91
Subtract 342 from 520 to get 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

Advancing to step 11:
342 can be fit into 1780 5 times, resulting in a remainder of 70.
The number 5 becomes the next digit in our result. 
Result so far: 117096.915
If we subtract 1710 from 1780, we get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Advancing to step 12:
342 goes into 700 2 times with a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 117096.9152
Subtracting 684 from 700 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 13:
342 can be fit into 160 0 times, resulting in a remainder of 160.
Put 0 as the next digit of the answer. 
Result so far: 117096.9152
The remainder is 160 after subtracting 0 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Step 14:
342 goes into 1600 4 times with a remainder of 232.
The next digit of our result is 4. 
Result so far: 117096.915204
If we take 1368 away from 1600, we end up with 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Going ahead to step 15:
2320 divided by 342 is 6 with a remainder of 268.
Write down 6 as next digit of the result. 
Result so far: 117096.9152046
Deduct 2052 from 2320 and we're left with 268.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

Let's proceed to step 16:
342 goes into 2680 7 times with a remainder of 286.
Use 7 as the next digit of our solution. 
Result so far: 117096.91520467
If we subtract 2394 from 2680, we get 286.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2860, and continue the process.

The final result is 117096.91520467 with a remainder of 2.86e-07.