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

Step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 31

Let's proceed to step 2:
51 divided by 31 is 1 with a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 31 from 51 leaves us with 20.
Grab the next digit (5) from the dividend, add it to 20, then carry on: 205 / 31

Let's proceed to step 3:
205 divided by 31 is 6 with a remainder of 19.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtracting 186 from 205 leaves us with 19.
Grab the next digit (5) from the dividend, add it to 19, then carry on: 195 / 31

Moving on to step 4:
195 divided by 31 is 6 with a remainder of 9.
The next digit of our result is 6. 
Result so far: 166.0
If we subtract 186 from 195, we get 9.
Bring next digit (0) of the dividend behind the 9 and repeat the process: 90 / 31

Moving on to step 5:
When dividing 90 by 31, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 1662.0
If we take 62 away from 90, we end up with 28.
Bring next digit (8) of the dividend behind the 28 and repeat the process: 288 / 31

On to step 6:
When dividing 288 by 31, we get 9 with a remainder of 9.
The next digit of our result is 9. 
Result so far: 16629.0
The remainder is 9 after subtracting 279 from 288.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 7:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 16629.2
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.

Moving on to step 8:
The number 31 fits into 280 9 times, leaving a remainder of 1.
The next digit of our result is 9. 
Result so far: 16629.29
Deduct 279 from 280 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 9:
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: 16629.29
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 10:
31 goes into 100 3 times with a remainder of 7.
The next digit of our result is 3. 
Result so far: 16629.2903
If we take 93 away from 100, we end up 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.

Advancing to step 11:
70 divided by 31 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 16629.29032
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 16629.290322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 16629.290322 with a balance of 1.8e-06.