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

On to step 1:
If we divide 5 by 31, we get 0 and 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.
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
Subtracting 31 from 51 leaves us with 20.
Append the next digit (5) from the dividend to 20 and continue with: 205 / 31

Advancing to step 3:
31 goes into 205 6 times with a remainder of 19.
The next digit of our result is 6. 
Result so far: 16.0
If we take 186 away from 205, we end up with 19.
Grab the next digit (5) from the dividend, add it to 19, then carry on: 195 / 31

Going ahead to step 4:
The number 31 fits into 195 6 times, leaving a remainder of 9.
Use 6 as the next digit of our solution. 
Result so far: 166.0
The remainder is 9 after subtracting 186 from 195.
Bring next digit (0) of the dividend behind the 9 and repeat the process: 90 / 31

Step 5:
31 goes into 90 2 times with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 1662.0
If we take 62 away from 90, we end up with 28.
Bring next digit (2) of the dividend behind the 28 and repeat the process: 282 / 31

Let's proceed to step 6:
31 can be fit into 282 9 times, resulting in a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 16629.0
Deduct 279 from 282 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
31 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 16629.0
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 8:
31 goes into 300 9 times with a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 16629.09
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 9:
31 can be fit into 210 6 times, resulting in a remainder of 24.
The next digit of our result is 6. 
Result so far: 16629.096
The remainder is 24 after subtracting 186 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 10:
31 goes into 240 7 times with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 16629.0967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 11:
The number 31 fits into 230 7 times, leaving a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 16629.09677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 16629.09677 with a balance of 1.3e-05.