507920 ÷ 31 
The aim is to understand the frequency of 31 in 507920.

Advancing to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 31

Going ahead to step 2:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 1.0
If we take 31 away from 50, we end up with 19.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 31

Let's proceed to step 3:
When dividing 197 by 31, we get 6 with a remainder of 11.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtract 186 from 197 to get 11.
Bring next digit (9) of the dividend behind the 11 and repeat the process: 119 / 31

Let's proceed to step 4:
The number 31 fits into 119 3 times, leaving a remainder of 26.
The number 3 becomes the next digit in our result. 
Result so far: 163.0
Subtracting 93 from 119 leaves us with 26.
Bring next digit (2) of the dividend behind the 26 and repeat the process: 262 / 31

On to step 5:
262 divided by 31 is 8 with a remainder of 14.
Use 8 as the next digit of our solution. 
Result so far: 1638.0
If we subtract 248 from 262, we get 14.
Fetch the next digit (0) from the dividend, attach it to 14 and continue: 140 / 31

Let's proceed to step 6:
140 divided by 31 is 4 with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 16384.0
Subtracting 124 from 140 leaves us 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.

Going ahead to step 7:
160 divided by 31 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 16384.5
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 8:
50 divided by 31 is 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 16384.51
If we subtract 31 from 50, we get 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 9:
190 divided by 31 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 16384.516
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 10:
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: 16384.5161
If we take 31 away from 40, we end up 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.

Advancing to step 11:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 16384.51612
Subtracting 62 from 90 leaves us with 28.
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 12:
When dividing 280 by 31, we get 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 16384.516129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 13:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 16384.516129
Deduct 0 from 10 and we're left 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.

Step 14:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 16384.51612903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

The final result is 16384.51612903 with a remainder of 7e-09.