407191 divided by 40 
We want to figure out the number of times 407191 can be divided by 40.

Advancing to step 1:
4 divided by 40 is 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 40

Step 2:
40 can be fit into 40 1 times, resulting in a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 0 after subtracting 40 from 40.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 40

Advancing to step 3:
When dividing 7 by 40, we get 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 10.0
Deduct 0 from 7 and we're left with 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 40

On to step 4:
40 can be fit into 71 1 times, resulting in a remainder of 31.
Write down 1 as next digit of the result. 
Result so far: 101.0
Subtract 40 from 71 to get 31.
Append the next digit (9) from the dividend to 31 and continue with: 319 / 40

Going ahead to step 5:
The number 40 fits into 319 7 times, leaving a remainder of 39.
The number 7 becomes the next digit in our result. 
Result so far: 1017.0
Subtracting 280 from 319 leaves us with 39.
Bring next digit (1) of the dividend behind the 39 and repeat the process: 391 / 40

Let's proceed to step 6:
40 goes into 391 9 times with a remainder of 31.
The next digit of our result is 9. 
Result so far: 10179.0
If we take 360 away from 391, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 7:
The number 40 fits into 310 7 times, leaving a remainder of 30.
The number 7 becomes the next digit in our result. 
Result so far: 10179.7
Subtracting 280 from 310 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 10179.77
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The quotient of the division is 10179.77, and the remainder is 0.02.