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

On to step 1:
31 goes into 5 0 times with 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.
Take the next digit (5) from the dividend and append it to 5, then repeat: 55 / 31

Let's proceed to step 2:
31 can be fit into 55 1 times, resulting in a remainder of 24.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 31 away from 55, we end up with 24.
Take the next digit (1) from the dividend and append it to 24, then repeat: 241 / 31

On to step 3:
31 can be fit into 241 7 times, resulting in a remainder of 24.
Use 7 as the next digit of our solution. 
Result so far: 17.0
The remainder is 24 after subtracting 217 from 241.
Take the next digit (5) from the dividend and append it to 24, then repeat: 245 / 31

Moving on to step 4:
The number 31 fits into 245 7 times, leaving a remainder of 28.
Record the quotient 7 as the next digit in the result. 
Result so far: 177.0
If we subtract 217 from 245, we get 28.
Append the next digit (8) from the dividend to 28 and continue with: 288 / 31

Advancing to step 5:
31 goes into 288 9 times with a remainder of 9.
Use 9 as the next digit of our solution. 
Result so far: 1779.0
Subtract 279 from 288 to get 9.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 31

On to step 6:
When dividing 98 by 31, we get 3 with a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 17793.0
Subtracting 93 from 98 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 7:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 17793.1
Subtracting 31 from 50 leaves us 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.

Going ahead to step 8:
When dividing 190 by 31, we get 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 17793.16
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 9:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 17793.161
Subtract 31 from 40 to get 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 10:
When dividing 90 by 31, we get 2 with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 17793.1612
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.

Advancing to step 11:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 17793.16129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 12:
31 goes into 10 0 times with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 17793.16129
Subtracting 0 from 10 leaves us 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 13:
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: 17793.1612903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 14:
70 divided by 31 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 17793.16129032
If we subtract 62 from 70, we 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.

Our division results in 17793.16129032 with a remaining 8e-09.