645684 divided by 31 
We want to figure out the number of times 645684 can be divided by 31.

Moving on to step 1:
31 goes into 6 0 times with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Let's proceed to step 2:
31 can be fit into 64 2 times, resulting in a remainder of 2.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 62 from 64 and we're left with 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 31

Going ahead to step 3:
The number 31 fits into 25 0 times, leaving a remainder of 25.
Write down 0 as next digit of the result. 
Result so far: 20.0
If we take 0 away from 25, we end up with 25.
Bring next digit (6) of the dividend behind the 25 and repeat the process: 256 / 31

Moving on to step 4:
256 divided by 31 is 8 with a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 208.0
Deduct 248 from 256 and we're left with 8.
Take the next digit (8) from the dividend and append it to 8, then repeat: 88 / 31

On to step 5:
If we divide 88 by 31, we get 2 and a remainder of 26.
The next digit of our result is 2. 
Result so far: 2082.0
Deduct 62 from 88 and we're left with 26.
Fetch the next digit (4) from the dividend, attach it to 26 and continue: 264 / 31

Going ahead to step 6:
If we divide 264 by 31, we get 8 and a remainder of 16.
Write down 8 as next digit of the result. 
Result so far: 20828.0
If we subtract 248 from 264, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 7:
If we divide 160 by 31, we get 5 and a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 20828.5
Subtracting 155 from 160 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.

On to step 8:
50 divided by 31 is 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 20828.51
If we take 31 away from 50, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 9:
190 divided by 31 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 20828.516
If we take 186 away from 190, 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.

Going ahead to step 10:
If we divide 40 by 31, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 20828.5161
If we subtract 31 from 40, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 11:
When dividing 90 by 31, we get 2 with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 20828.51612
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 12:
31 goes into 280 9 times with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 20828.516129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 13:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 20828.516129
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 14:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 20828.51612903
Subtracting 93 from 100 leaves us 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.

The quotient of the division is 20828.51612903, and the remainder is 7e-09.