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

Going ahead to step 1:
5 divided by 31 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 31

Going ahead to step 2:
31 can be fit into 52 1 times, resulting in a remainder of 21.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 31 from 52 and we're left with 21.
Include the next digit (9) from the dividend after 21, then repeat: 219 / 31

On to step 3:
The number 31 fits into 219 7 times, leaving a remainder of 2.
The next digit of our result is 7. 
Result so far: 17.0
If we take 217 away from 219, we end up with 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 31

Going ahead to step 4:
27 divided by 31 is 0 with a remainder of 27.
Use 0 as the next digit of our solution. 
Result so far: 170.0
Deduct 0 from 27 and we're left with 27.
Grab the next digit (9) from the dividend, add it to 27, then carry on: 279 / 31

Let's proceed to step 5:
When dividing 279 by 31, we get 9 with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 1709.0
The remainder is 0 after subtracting 279 from 279.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 31

On to step 6:
31 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 17090.0
If we take 0 away from 5, we end up with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 31

Let's proceed to step 7:
31 goes into 50 1 times with a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 170901.0
Subtract 31 from 50 to get 19.
Grab the next digit (4) from the dividend, add it to 19, then carry on: 194 / 31

Let's proceed to step 8:
The number 31 fits into 194 6 times, leaving a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 1709016.0
If we take 186 away from 194, we end up 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.

Let's proceed to step 9:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 1709016.2
If we subtract 62 from 80, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 10:
If we divide 180 by 31, we get 5 and a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 1709016.25
The remainder is 25 after subtracting 155 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 11:
When dividing 250 by 31, we get 8 with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 1709016.258
If we take 248 away from 250, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 12:
If we divide 20 by 31, we get 0 and a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 1709016.258
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 13:
200 divided by 31 is 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 1709016.25806
The remainder is 14 after subtracting 186 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 14:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 1709016.258064
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.

On to step 15:
160 divided by 31 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 1709016.2580645
Deduct 155 from 160 and we're left 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.

Going ahead to step 16:
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: 1709016.25806451
Subtract 31 from 50 to 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.

After the division, we end up with 1709016.25806451 and a remainder of 1.9e-08.