40226175 divided by 871 
Our goal is to divide 40226175 by 871.

Let's proceed to step 1:
When dividing 4 by 871, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 871

Going ahead to step 2:
871 goes into 40 0 times with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Include the next digit (2) from the dividend after 40, then repeat: 402 / 871

On to step 3:
402 divided by 871 is 0 with a remainder of 402.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 402 after subtracting 0 from 402.
Bring next digit (2) of the dividend behind the 402 and repeat the process: 4022 / 871

Advancing to step 4:
871 can be fit into 4022 4 times, resulting in a remainder of 538.
The next digit of our result is 4. 
Result so far: 4.0
If we subtract 3484 from 4022, we get 538.
Fetch the next digit (6) from the dividend, attach it to 538 and continue: 5386 / 871

Advancing to step 5:
5386 divided by 871 is 6 with a remainder of 160.
The next digit of our result is 6. 
Result so far: 46.0
The remainder is 160 after subtracting 5226 from 5386.
Fetch the next digit (1) from the dividend, attach it to 160 and continue: 1601 / 871

Advancing to step 6:
When dividing 1601 by 871, we get 1 with a remainder of 730.
The next digit of our result is 1. 
Result so far: 461.0
The remainder is 730 after subtracting 871 from 1601.
Fetch the next digit (7) from the dividend, attach it to 730 and continue: 7307 / 871

On to step 7:
If we divide 7307 by 871, we get 8 and a remainder of 339.
Write down 8 as next digit of the result. 
Result so far: 4618.0
Deduct 6968 from 7307 and we're left with 339.
Grab the next digit (5) from the dividend, add it to 339, then carry on: 3395 / 871

Moving on to step 8:
3395 divided by 871 is 3 with a remainder of 782.
The number 3 becomes the next digit in our result. 
Result so far: 46183.0
Subtracting 2613 from 3395 leaves us with 782.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7820, and continue the process.

Going ahead to step 9:
The number 871 fits into 7820 8 times, leaving a remainder of 852.
Write down 8 as next digit of the result. 
Result so far: 46183.8
The remainder is 852 after subtracting 6968 from 7820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8520, and continue the process.

Moving on to step 10:
If we divide 8520 by 871, we get 9 and a remainder of 681.
The number 9 becomes the next digit in our result. 
Result so far: 46183.89
The remainder is 681 after subtracting 7839 from 8520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6810, and continue the process.

Advancing to step 11:
871 can be fit into 6810 7 times, resulting in a remainder of 713.
The next digit of our result is 7. 
Result so far: 46183.897
If we take 6097 away from 6810, we end up with 713.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7130, and continue the process.

Step 12:
If we divide 7130 by 871, we get 8 and a remainder of 162.
Put 8 as the next digit of the answer. 
Result so far: 46183.8978
Subtracting 6968 from 7130 leaves us with 162.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1620, and continue the process.

Advancing to step 13:
The number 871 fits into 1620 1 times, leaving a remainder of 749.
Write down 1 as next digit of the result. 
Result so far: 46183.89781
If we subtract 871 from 1620, we get 749.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7490, and continue the process.

On to step 14:
The number 871 fits into 7490 8 times, leaving a remainder of 522.
The number 8 becomes the next digit in our result. 
Result so far: 46183.897818
The remainder is 522 after subtracting 6968 from 7490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5220, and continue the process.

On to step 15:
If we divide 5220 by 871, we get 5 and a remainder of 865.
Record the quotient 5 as the next digit in the result. 
Result so far: 46183.8978185
If we take 4355 away from 5220, we end up with 865.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8650, and continue the process.

Advancing to step 16:
871 goes into 8650 9 times with a remainder of 811.
Write down 9 as next digit of the result. 
Result so far: 46183.89781859
Deduct 7839 from 8650 and we're left with 811.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8110, and continue the process.

The final outcome is 46183.89781859, with a leftover of 8.11e-07.