We look at the division of 556531 by 31 
The aim is to understand the frequency of 31 in 556531.

Moving on to step 1:
5 divided by 31 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (5) from the dividend after 5, then repeat: 55 / 31

Let's proceed to step 2:
The number 31 fits into 55 1 times, leaving a remainder of 24.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 31 from 55, we get 24.
Take the next digit (6) from the dividend and append it to 24, then repeat: 246 / 31

Step 3:
246 divided by 31 is 7 with a remainder of 29.
Use 7 as the next digit of our solution. 
Result so far: 17.0
If we subtract 217 from 246, we get 29.
Fetch the next digit (5) from the dividend, attach it to 29 and continue: 295 / 31

Advancing to step 4:
When dividing 295 by 31, we get 9 with a remainder of 16.
The next digit of our result is 9. 
Result so far: 179.0
Deduct 279 from 295 and we're left with 16.
Grab the next digit (3) from the dividend, add it to 16, then carry on: 163 / 31

Let's proceed to step 5:
31 can be fit into 163 5 times, resulting in a remainder of 8.
The next digit of our result is 5. 
Result so far: 1795.0
Deduct 155 from 163 and we're left with 8.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 31

Let's proceed to step 6:
The number 31 fits into 81 2 times, leaving a remainder of 19.
Put 2 as the next digit of the answer. 
Result so far: 17952.0
Deduct 62 from 81 and we're left 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.

Moving on to step 7:
When dividing 190 by 31, we get 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 17952.6
Subtract 186 from 190 to 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.

Step 8:
31 goes into 40 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 17952.61
Deduct 31 from 40 and we're left 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.

Step 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 17952.612
If we take 62 away from 90, we end up 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.

Step 10:
If we divide 280 by 31, we get 9 and a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 17952.6129
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.

Advancing to step 11:
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: 17952.6129
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.

On to step 12:
31 goes into 100 3 times with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 17952.612903
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.

Going ahead to step 13:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 17952.6129032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 14:
80 divided by 31 is 2 with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 17952.61290322
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 17952.61290322 with a remainder of 1.8e-08.