Let's divide 516722 by 31
We're looking to find how many times 31 goes into 516722.

Advancing to step 1:
5 divided by 31 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 31

Advancing to step 2:
If we divide 51 by 31, we get 1 and a remainder of 20.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 31 from 51 to get 20.
Fetch the next digit (6) from the dividend, attach it to 20 and continue: 206 / 31

Advancing to step 3:
31 goes into 206 6 times with a remainder of 20.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtract 186 from 206 to get 20.
Bring next digit (7) of the dividend behind the 20 and repeat the process: 207 / 31

On to step 4:
31 can be fit into 207 6 times, resulting in a remainder of 21.
The next digit of our result is 6. 
Result so far: 166.0
If we subtract 186 from 207, we get 21.
Fetch the next digit (2) from the dividend, attach it to 21 and continue: 212 / 31

On to step 5:
31 goes into 212 6 times with a remainder of 26.
The next digit of our result is 6. 
Result so far: 1666.0
Deduct 186 from 212 and we're left with 26.
Fetch the next digit (2) from the dividend, attach it to 26 and continue: 262 / 31

Advancing to step 6:
262 divided by 31 is 8 with a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 16668.0
Subtract 248 from 262 to get 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 7:
The number 31 fits into 140 4 times, leaving a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 16668.4
Deduct 124 from 140 and we're left 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.

Moving on to step 8:
31 goes into 160 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 16668.45
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 9:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 16668.451
Subtracting 31 from 50 leaves us 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 10:
31 goes into 190 6 times with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 16668.4516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 11:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 16668.45161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 12:
31 goes into 90 2 times with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 16668.451612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 13:
31 can be fit into 280 9 times, resulting in a remainder of 1.
The next digit of our result is 9. 
Result so far: 16668.4516129
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.

Let's proceed to step 14:
31 goes into 10 0 times with a remainder of 10.
The next digit of our result is 0. 
Result so far: 16668.4516129
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.

The final result is 16668.4516129 with a remainder of 1e-08.