Let's divide 813684 by 40
We want to divide 813684 by 40.

Let's proceed to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Take the next digit (1) from the dividend and append it to 8, then repeat: 81 / 40

Moving on to step 2:
If we divide 81 by 40, we get 2 and a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 80 from 81 to get 1.
Take the next digit (3) from the dividend and append it to 1, then repeat: 13 / 40

Moving on to step 3:
When dividing 13 by 40, we get 0 with a remainder of 13.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
If we subtract 0 from 13, we get 13.
Append the next digit (6) from the dividend to 13 and continue with: 136 / 40

Moving on to step 4:
If we divide 136 by 40, we get 3 and a remainder of 16.
Put 3 as the next digit of the answer. 
Result so far: 203.0
If we take 120 away from 136, we end up with 16.
Fetch the next digit (8) from the dividend, attach it to 16 and continue: 168 / 40

Let's proceed to step 5:
The number 40 fits into 168 4 times, leaving a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 2034.0
Subtracting 160 from 168 leaves us with 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 40

Step 6:
When dividing 84 by 40, we get 2 with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 20342.0
If we take 80 away from 84, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 7:
If we divide 40 by 40, we get 1 and a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 20342.1
The remainder is 0 after subtracting 40 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 8:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20342.1
If we take 0 away from 0, we end up 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.

On to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20342.1
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 20342.1 with a remaining 0.0.