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

Advancing to step 1:
5 divided by 31 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

Moving on to step 2:
If we divide 51 by 31, we get 1 and a remainder of 20.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 31 from 51, we get 20.
Grab the next digit (6) from the dividend, add it to 20, then carry on: 206 / 31

Let's proceed to step 3:
The number 31 fits into 206 6 times, leaving a remainder of 20.
Use 6 as the next digit of our solution. 
Result so far: 16.0
Deduct 186 from 206 and we're left with 20.
Include the next digit (4) from the dividend after 20, then repeat: 204 / 31

Going ahead to step 4:
If we divide 204 by 31, we get 6 and a remainder of 18.
Record the quotient 6 as the next digit in the result. 
Result so far: 166.0
The remainder is 18 after subtracting 186 from 204.
Grab the next digit (0) from the dividend, add it to 18, then carry on: 180 / 31

On to step 5:
The number 31 fits into 180 5 times, leaving a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 1665.0
Subtracting 155 from 180 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 6:
31 can be fit into 250 8 times, resulting in a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 1665.8
Subtract 248 from 250 to 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.

Step 7:
The number 31 fits into 20 0 times, leaving a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 1665.8
Deduct 0 from 20 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.

Let's proceed to step 8:
When dividing 200 by 31, we get 6 with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 1665.806
Subtracting 186 from 200 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 9:
The number 31 fits into 140 4 times, leaving a remainder of 16.
The next digit of our result is 4. 
Result so far: 1665.8064
If we take 124 away from 140, we end up with 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 10:
160 divided by 31 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 1665.80645
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 11:
When dividing 50 by 31, we get 1 with a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 1665.806451
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.

Let's proceed to step 12:
31 goes into 190 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 1665.8064516
Deduct 186 from 190 and we're left 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.

Moving on to step 13:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 1665.80645161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

The final result is 1665.80645161 with a remainder of 9e-09.