We look at the division of 40238198 by 291 
We're looking to find how many times 291 goes into 40238198.

Going ahead to step 1:
291 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 291

Going ahead to step 2:
If we divide 40 by 291, we get 0 and a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (2) from the dividend, attach it to 40 and continue: 402 / 291

Let's proceed to step 3:
402 divided by 291 is 1 with a remainder of 111.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 291 from 402 to get 111.
Bring next digit (3) of the dividend behind the 111 and repeat the process: 1113 / 291

Moving on to step 4:
If we divide 1113 by 291, we get 3 and a remainder of 240.
Put 3 as the next digit of the answer. 
Result so far: 13.0
The remainder is 240 after subtracting 873 from 1113.
Take the next digit (8) from the dividend and append it to 240, then repeat: 2408 / 291

Going ahead to step 5:
291 goes into 2408 8 times with a remainder of 80.
The next digit of our result is 8. 
Result so far: 138.0
If we take 2328 away from 2408, we end up with 80.
Fetch the next digit (1) from the dividend, attach it to 80 and continue: 801 / 291

Going ahead to step 6:
291 goes into 801 2 times with a remainder of 219.
Record the quotient 2 as the next digit in the result. 
Result so far: 1382.0
Subtract 582 from 801 to get 219.
Bring next digit (9) of the dividend behind the 219 and repeat the process: 2199 / 291

Let's proceed to step 7:
291 can be fit into 2199 7 times, resulting in a remainder of 162.
Put 7 as the next digit of the answer. 
Result so far: 13827.0
Deduct 2037 from 2199 and we're left with 162.
Append the next digit (8) from the dividend to 162 and continue with: 1628 / 291

On to step 8:
The number 291 fits into 1628 5 times, leaving a remainder of 173.
The next digit of our result is 5. 
Result so far: 138275.0
Subtracting 1455 from 1628 leaves us with 173.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1730, and continue the process.

Let's proceed to step 9:
291 goes into 1730 5 times with a remainder of 275.
The next digit of our result is 5. 
Result so far: 138275.5
Deduct 1455 from 1730 and we're left with 275.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2750, and continue the process.

Step 10:
2750 divided by 291 is 9 with a remainder of 131.
Put 9 as the next digit of the answer. 
Result so far: 138275.59
If we take 2619 away from 2750, we end up with 131.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1310, and continue the process.

Going ahead to step 11:
The number 291 fits into 1310 4 times, leaving a remainder of 146.
Put 4 as the next digit of the answer. 
Result so far: 138275.594
Subtract 1164 from 1310 to get 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Going ahead to step 12:
291 goes into 1460 5 times with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 138275.5945
Subtracting 1455 from 1460 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 13:
When dividing 50 by 291, we get 0 with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 138275.5945
The remainder is 50 after subtracting 0 from 50.
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 291 is 1 with a remainder of 209.
The number 1 becomes the next digit in our result. 
Result so far: 138275.594501
Deduct 291 from 500 and we're left with 209.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2090, and continue the process.

Moving on to step 15:
When dividing 2090 by 291, we get 7 with a remainder of 53.
Use 7 as the next digit of our solution. 
Result so far: 138275.5945017
Deduct 2037 from 2090 and we're left with 53.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Advancing to step 16:
291 can be fit into 530 1 times, resulting in a remainder of 239.
The next digit of our result is 1. 
Result so far: 138275.59450171
If we take 291 away from 530, we end up with 239.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2390, and continue the process.

The final outcome is 138275.59450171, with a leftover of 2.39e-07.