We're dividing 807191 by 40 
Our goal is to divide 807191 by 40.

Going ahead to step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Append the next digit (0) from the dividend to 8 and continue with: 80 / 40

Going ahead to step 2:
80 divided by 40 is 2 with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 80 away from 80, we end up with 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 40

Step 3:
If we divide 7 by 40, we get 0 and a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 20.0
If we subtract 0 from 7, we get 7.
Fetch the next digit (1) from the dividend, attach it to 7 and continue: 71 / 40

Let's proceed to step 4:
When dividing 71 by 40, we get 1 with a remainder of 31.
Record the quotient 1 as the next digit in the result. 
Result so far: 201.0
Subtract 40 from 71 to get 31.
Take the next digit (9) from the dividend and append it to 31, then repeat: 319 / 40

Advancing to step 5:
If we divide 319 by 40, we get 7 and a remainder of 39.
Use 7 as the next digit of our solution. 
Result so far: 2017.0
If we subtract 280 from 319, we get 39.
Grab the next digit (1) from the dividend, add it to 39, then carry on: 391 / 40

Step 6:
391 divided by 40 is 9 with a remainder of 31.
Put 9 as the next digit of the answer. 
Result so far: 20179.0
Subtract 360 from 391 to get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Let's proceed to step 7:
40 can be fit into 310 7 times, resulting in a remainder of 30.
Put 7 as the next digit of the answer. 
Result so far: 20179.7
The remainder is 30 after subtracting 280 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
The next digit of our result is 7. 
Result so far: 20179.77
The remainder is 20 after subtracting 280 from 300.
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 20179.77, and the remainder is 0.02.