516745 divided by 31 
The aim is to understand the frequency of 31 in 516745.

Step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 31

Going ahead to step 2:
When dividing 51 by 31, we get 1 with a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 31 from 51 and we're left with 20.
Bring next digit (6) of the dividend behind the 20 and repeat the process: 206 / 31

Step 3:
31 can be fit into 206 6 times, resulting in a remainder of 20.
The next digit of our result is 6. 
Result so far: 16.0
If we subtract 186 from 206, we get 20.
Bring next digit (7) of the dividend behind the 20 and repeat the process: 207 / 31

Going ahead to step 4:
If we divide 207 by 31, we get 6 and a remainder of 21.
Use 6 as the next digit of our solution. 
Result so far: 166.0
Deduct 186 from 207 and we're left with 21.
Fetch the next digit (4) from the dividend, attach it to 21 and continue: 214 / 31

Moving on to step 5:
31 goes into 214 6 times with a remainder of 28.
Record the quotient 6 as the next digit in the result. 
Result so far: 1666.0
Subtracting 186 from 214 leaves us with 28.
Append the next digit (5) from the dividend to 28 and continue with: 285 / 31

Let's proceed to step 6:
31 can be fit into 285 9 times, resulting in a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 16669.0
Deduct 279 from 285 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 7:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Use 1 as the next digit of our solution. 
Result so far: 16669.1
Subtracting 31 from 60 leaves us 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.

Step 8:
31 goes into 290 9 times with a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 16669.19
Deduct 279 from 290 and we're left 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.

Going ahead to step 9:
The number 31 fits into 110 3 times, leaving a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 16669.193
Subtracting 93 from 110 leaves us with 17.
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 10:
31 can be fit into 170 5 times, resulting in a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 16669.1935
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.

On to step 11:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 16669.19354
Subtracting 124 from 150 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 12:
When dividing 260 by 31, we get 8 with a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 16669.193548
Subtracting 248 from 260 leaves us 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.

Let's proceed to step 13:
31 goes into 120 3 times with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 16669.1935483
Deduct 93 from 120 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 14:
31 goes into 270 8 times with a remainder of 22.
The next digit of our result is 8. 
Result so far: 16669.19354838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

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