We're dividing 40218248 by 249 
Let's see how many times 249 fits into 40218248.

Step 1:
If we divide 4 by 249, 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 take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 249

Advancing to step 2:
If we divide 40 by 249, we get 0 and 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 (2) from the dividend after 40, then repeat: 402 / 249

Let's proceed to step 3:
If we divide 402 by 249, we get 1 and a remainder of 153.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 153 after subtracting 249 from 402.
Include the next digit (1) from the dividend after 153, then repeat: 1531 / 249

On to step 4:
1531 divided by 249 is 6 with a remainder of 37.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we subtract 1494 from 1531, we get 37.
Bring next digit (8) of the dividend behind the 37 and repeat the process: 378 / 249

Let's proceed to step 5:
The number 249 fits into 378 1 times, leaving a remainder of 129.
Write down 1 as next digit of the result. 
Result so far: 161.0
Subtract 249 from 378 to get 129.
Grab the next digit (2) from the dividend, add it to 129, then carry on: 1292 / 249

On to step 6:
249 can be fit into 1292 5 times, resulting in a remainder of 47.
The number 5 becomes the next digit in our result. 
Result so far: 1615.0
Deduct 1245 from 1292 and we're left with 47.
Append the next digit (4) from the dividend to 47 and continue with: 474 / 249

Going ahead to step 7:
249 can be fit into 474 1 times, resulting in a remainder of 225.
Write down 1 as next digit of the result. 
Result so far: 16151.0
Subtracting 249 from 474 leaves us with 225.
Append the next digit (8) from the dividend to 225 and continue with: 2258 / 249

Going ahead to step 8:
If we divide 2258 by 249, we get 9 and a remainder of 17.
Put 9 as the next digit of the answer. 
Result so far: 161519.0
Subtract 2241 from 2258 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 9:
249 goes into 170 0 times with a remainder of 170.
Use 0 as the next digit of our solution. 
Result so far: 161519.0
If we subtract 0 from 170, we get 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Step 10:
If we divide 1700 by 249, we get 6 and a remainder of 206.
The next digit of our result is 6. 
Result so far: 161519.06
If we subtract 1494 from 1700, we get 206.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

On to step 11:
If we divide 2060 by 249, we get 8 and a remainder of 68.
Put 8 as the next digit of the answer. 
Result so far: 161519.068
The remainder is 68 after subtracting 1992 from 2060.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Step 12:
The number 249 fits into 680 2 times, leaving a remainder of 182.
The next digit of our result is 2. 
Result so far: 161519.0682
If we take 498 away from 680, we end up with 182.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1820, and continue the process.

Moving on to step 13:
When dividing 1820 by 249, we get 7 with a remainder of 77.
The next digit of our result is 7. 
Result so far: 161519.06827
The remainder is 77 after subtracting 1743 from 1820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

Advancing to step 14:
249 goes into 770 3 times with a remainder of 23.
The next digit of our result is 3. 
Result so far: 161519.068273
Subtracting 747 from 770 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 15:
The number 249 fits into 230 0 times, leaving a remainder of 230.
Record the quotient 0 as the next digit in the result. 
Result so far: 161519.068273
Subtracting 0 from 230 leaves us with 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

Moving on to step 16:
249 can be fit into 2300 9 times, resulting in a remainder of 59.
The next digit of our result is 9. 
Result so far: 161519.06827309
Deduct 2241 from 2300 and we're left with 59.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

After the division, we end up with 161519.06827309 and a remainder of 5.9e-08.