Let's divide 641847 by 31
We want to figure out the number of times 641847 can be divided by 31.

Advancing to step 1:
When dividing 6 by 31, we get 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Advancing to step 2:
If we divide 64 by 31, we get 2 and a remainder of 2.
The next digit of our result is 2. 
Result so far: 2.0
If we take 62 away from 64, we end up with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 31

Step 3:
21 divided by 31 is 0 with a remainder of 21.
Write down 0 as next digit of the result. 
Result so far: 20.0
Subtracting 0 from 21 leaves us with 21.
Take the next digit (8) from the dividend and append it to 21, then repeat: 218 / 31

Moving on to step 4:
The number 31 fits into 218 7 times, leaving a remainder of 1.
The next digit of our result is 7. 
Result so far: 207.0
If we take 217 away from 218, we end up with 1.
Include the next digit (4) from the dividend after 1, then repeat: 14 / 31

On to step 5:
14 divided by 31 is 0 with a remainder of 14.
Put 0 as the next digit of the answer. 
Result so far: 2070.0
Subtracting 0 from 14 leaves us with 14.
Bring next digit (7) of the dividend behind the 14 and repeat the process: 147 / 31

Let's proceed to step 6:
31 can be fit into 147 4 times, resulting in a remainder of 23.
The number 4 becomes the next digit in our result. 
Result so far: 20704.0
Subtracting 124 from 147 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 7:
31 can be fit into 230 7 times, resulting in a remainder of 13.
The next digit of our result is 7. 
Result so far: 20704.7
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 8:
The number 31 fits into 130 4 times, leaving a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 20704.74
Deduct 124 from 130 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 9:
60 divided by 31 is 1 with a remainder of 29.
Record the quotient 1 as the next digit in the result. 
Result so far: 20704.741
If we take 31 away from 60, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 10:
290 divided by 31 is 9 with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 20704.7419
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 11:
The number 31 fits into 110 3 times, leaving a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 20704.74193
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 12:
31 goes into 170 5 times with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 20704.741935
If we subtract 155 from 170, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 13:
31 goes into 150 4 times with a remainder of 26.
The next digit of our result is 4. 
Result so far: 20704.7419354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 14:
When dividing 260 by 31, we get 8 with a remainder of 12.
The next digit of our result is 8. 
Result so far: 20704.74193548
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final result is 20704.74193548 with a remainder of 1.2e-08.