804647 divided by 40 
We want to divide 804647 by 40.

Step 1:
40 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Fetch the next digit (0) from the dividend, attach it to 8 and continue: 80 / 40

Moving on to step 2:
40 goes into 80 2 times with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 80 from 80, we get 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 40

Advancing to step 3:
When dividing 4 by 40, we get 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 20.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (6) of the dividend behind the 4 and repeat the process: 46 / 40

Going ahead to step 4:
When dividing 46 by 40, we get 1 with a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 201.0
Subtract 40 from 46 to get 6.
Bring next digit (4) of the dividend behind the 6 and repeat the process: 64 / 40

Let's proceed to step 5:
64 divided by 40 is 1 with a remainder of 24.
Record the quotient 1 as the next digit in the result. 
Result so far: 2011.0
Subtract 40 from 64 to get 24.
Fetch the next digit (7) from the dividend, attach it to 24 and continue: 247 / 40

Advancing to step 6:
If we divide 247 by 40, we get 6 and a remainder of 7.
Record the quotient 6 as the next digit in the result. 
Result so far: 20116.0
Deduct 240 from 247 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
The number 40 fits into 70 1 times, leaving a remainder of 30.
The number 1 becomes the next digit in our result. 
Result so far: 20116.1
If we take 40 away from 70, we end up 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.

Going ahead to step 8:
40 can be fit into 300 7 times, resulting in a remainder of 20.
The next digit of our result is 7. 
Result so far: 20116.17
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.

On to step 9:
40 goes into 200 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 20116.175
Subtracting 200 from 200 leaves us 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 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 20116.175
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.

Advancing to step 11:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 20116.175
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.

After the division, we end up with 20116.175 and a remainder of 0.0.