We're dividing 419171 by 40 
Let's see how many times 40 fits into 419171.

Let's proceed to step 1:
The number 40 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 40

Step 2:
The number 40 fits into 41 1 times, leaving a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 40 away from 41, we end up with 1.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 40

Step 3:
40 can be fit into 19 0 times, resulting in a remainder of 19.
Write down 0 as next digit of the result. 
Result so far: 10.0
Subtracting 0 from 19 leaves us with 19.
Fetch the next digit (1) from the dividend, attach it to 19 and continue: 191 / 40

Moving on to step 4:
40 can be fit into 191 4 times, resulting in a remainder of 31.
The next digit of our result is 4. 
Result so far: 104.0
If we take 160 away from 191, we end up with 31.
Append the next digit (7) from the dividend to 31 and continue with: 317 / 40

Advancing to step 5:
If we divide 317 by 40, we get 7 and a remainder of 37.
Use 7 as the next digit of our solution. 
Result so far: 1047.0
Deduct 280 from 317 and we're left with 37.
Include the next digit (1) from the dividend after 37, then repeat: 371 / 40

Step 6:
If we divide 371 by 40, we get 9 and a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 10479.0
Deduct 360 from 371 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 7:
40 can be fit into 110 2 times, resulting in a remainder of 30.
Use 2 as the next digit of our solution. 
Result so far: 10479.2
If we subtract 80 from 110, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 8:
40 goes into 300 7 times with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 10479.27
Deduct 280 from 300 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
40 goes into 200 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 10479.275
Deduct 200 from 200 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 10479.275
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 10479.275
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 10479.275, with a leftover of 0.0.