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

Going ahead to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 40

Step 2:
The number 40 fits into 84 2 times, leaving a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we subtract 80 from 84, we get 4.
Grab the next digit (5) from the dividend, add it to 4, then carry on: 45 / 40

Step 3:
When dividing 45 by 40, we get 1 with a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Deduct 40 from 45 and we're left with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 40

Advancing to step 4:
If we divide 50 by 40, we get 1 and a remainder of 10.
Put 1 as the next digit of the answer. 
Result so far: 211.0
Subtract 40 from 50 to get 10.
Take the next digit (0) from the dividend and append it to 10, then repeat: 100 / 40

Advancing to step 5:
When dividing 100 by 40, we get 2 with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 2112.0
Deduct 80 from 100 and we're left with 20.
Append the next digit (6) from the dividend to 20 and continue with: 206 / 40

On to step 6:
The number 40 fits into 206 5 times, leaving a remainder of 6.
Put 5 as the next digit of the answer. 
Result so far: 21125.0
Subtract 200 from 206 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 7:
40 can be fit into 60 1 times, resulting in a remainder of 20.
The next digit of our result is 1. 
Result so far: 21125.1
Subtracting 40 from 60 leaves us 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 8:
200 divided by 40 is 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 21125.15
The remainder is 0 after subtracting 200 from 200.
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.
Record the quotient 0 as the next digit in the result. 
Result so far: 21125.15
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.

Step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21125.15
Subtracting 0 from 0 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.

The quotient of the division is 21125.15, and the remainder is 0.0.