We divide 40847 by 21
We want to figure out the number of times 40847 can be divided by 21.

Going ahead to step 1:
21 can be fit into 4 0 times, resulting in a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 21

Advancing to step 2:
40 divided by 21 is 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 19 after subtracting 21 from 40.
Fetch the next digit (8) from the dividend, attach it to 19 and continue: 198 / 21

On to step 3:
When dividing 198 by 21, we get 9 with a remainder of 9.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
Subtracting 189 from 198 leaves us with 9.
Bring next digit (4) of the dividend behind the 9 and repeat the process: 94 / 21

Let's proceed to step 4:
If we divide 94 by 21, we get 4 and a remainder of 10.
The next digit of our result is 4. 
Result so far: 194.0
Subtracting 84 from 94 leaves us with 10.
Grab the next digit (7) from the dividend, add it to 10, then carry on: 107 / 21

Moving on to step 5:
21 goes into 107 5 times with a remainder of 2.
The next digit of our result is 5. 
Result so far: 1945.0
If we subtract 105 from 107, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 6:
When dividing 20 by 21, we get 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 1945.0
Subtracting 0 from 20 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.

Advancing to step 7:
21 goes into 200 9 times with a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 1945.09
If we subtract 189 from 200, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 8:
21 can be fit into 110 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 1945.095
Subtracting 105 from 110 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 9:
If we divide 50 by 21, we get 2 and a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 1945.0952
Subtract 42 from 50 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 10:
21 goes into 80 3 times with a remainder of 17.
Use 3 as the next digit of our solution. 
Result so far: 1945.09523
Subtract 63 from 80 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 11:
21 can be fit into 170 8 times, resulting in a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 1945.095238
Deduct 168 from 170 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 12:
The number 21 fits into 20 0 times, leaving a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 1945.095238
Subtracting 0 from 20 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.

Moving on to step 13:
The number 21 fits into 200 9 times, leaving a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 1945.09523809
If we subtract 189 from 200, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

After the division, we end up with 1945.09523809 and a remainder of 1.1e-08.