We're dividing 40874347 by 471 
Let's see how many times 471 fits into 40874347.

Let's proceed to step 1:
The number 471 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 471

Going ahead to step 2:
The number 471 fits into 40 0 times, leaving a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Include the next digit (8) from the dividend after 40, then repeat: 408 / 471

Step 3:
471 goes into 408 0 times with a remainder of 408.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 408, we end up with 408.
Append the next digit (7) from the dividend to 408 and continue with: 4087 / 471

Moving on to step 4:
4087 divided by 471 is 8 with a remainder of 319.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Subtracting 3768 from 4087 leaves us with 319.
Grab the next digit (4) from the dividend, add it to 319, then carry on: 3194 / 471

Moving on to step 5:
When dividing 3194 by 471, we get 6 with a remainder of 368.
The next digit of our result is 6. 
Result so far: 86.0
The remainder is 368 after subtracting 2826 from 3194.
Fetch the next digit (3) from the dividend, attach it to 368 and continue: 3683 / 471

Let's proceed to step 6:
3683 divided by 471 is 7 with a remainder of 386.
Use 7 as the next digit of our solution. 
Result so far: 867.0
If we take 3297 away from 3683, we end up with 386.
Grab the next digit (4) from the dividend, add it to 386, then carry on: 3864 / 471

Going ahead to step 7:
471 goes into 3864 8 times with a remainder of 96.
The next digit of our result is 8. 
Result so far: 8678.0
If we subtract 3768 from 3864, we get 96.
Append the next digit (7) from the dividend to 96 and continue with: 967 / 471

Let's proceed to step 8:
The number 471 fits into 967 2 times, leaving a remainder of 25.
Put 2 as the next digit of the answer. 
Result so far: 86782.0
If we subtract 942 from 967, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 9:
The number 471 fits into 250 0 times, leaving a remainder of 250.
Put 0 as the next digit of the answer. 
Result so far: 86782.0
Subtracting 0 from 250 leaves us with 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Advancing to step 10:
2500 divided by 471 is 5 with a remainder of 145.
The next digit of our result is 5. 
Result so far: 86782.05
Subtract 2355 from 2500 to get 145.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1450, and continue the process.

Advancing to step 11:
The number 471 fits into 1450 3 times, leaving a remainder of 37.
Write down 3 as next digit of the result. 
Result so far: 86782.053
Deduct 1413 from 1450 and we're left with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Let's proceed to step 12:
471 goes into 370 0 times with a remainder of 370.
The next digit of our result is 0. 
Result so far: 86782.053
The remainder is 370 after subtracting 0 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3700, and continue the process.

Going ahead to step 13:
471 goes into 3700 7 times with a remainder of 403.
The next digit of our result is 7. 
Result so far: 86782.05307
The remainder is 403 after subtracting 3297 from 3700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4030, and continue the process.

Let's proceed to step 14:
The number 471 fits into 4030 8 times, leaving a remainder of 262.
Use 8 as the next digit of our solution. 
Result so far: 86782.053078
Subtract 3768 from 4030 to get 262.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2620, and continue the process.

Moving on to step 15:
The number 471 fits into 2620 5 times, leaving a remainder of 265.
Write down 5 as next digit of the result. 
Result so far: 86782.0530785
If we subtract 2355 from 2620, we get 265.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2650, and continue the process.

Advancing to step 16:
When dividing 2650 by 471, we get 5 with a remainder of 295.
The next digit of our result is 5. 
Result so far: 86782.05307855
Deduct 2355 from 2650 and we're left with 295.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2950, and continue the process.

The final outcome is 86782.05307855, with a leftover of 2.95e-07.