Let's divide 577657 by 31
The aim is to understand the frequency of 31 in 577657.

Step 1:
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: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (7) from the dividend, add it to 5, then carry on: 57 / 31

Step 2:
The number 31 fits into 57 1 times, leaving a remainder of 26.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 57 leaves us with 26.
Grab the next digit (7) from the dividend, add it to 26, then carry on: 267 / 31

Moving on to step 3:
267 divided by 31 is 8 with a remainder of 19.
The next digit of our result is 8. 
Result so far: 18.0
Subtracting 248 from 267 leaves us with 19.
Fetch the next digit (6) from the dividend, attach it to 19 and continue: 196 / 31

Advancing to step 4:
If we divide 196 by 31, we get 6 and a remainder of 10.
The number 6 becomes the next digit in our result. 
Result so far: 186.0
Subtract 186 from 196 to get 10.
Take the next digit (5) from the dividend and append it to 10, then repeat: 105 / 31

Advancing to step 5:
If we divide 105 by 31, we get 3 and a remainder of 12.
Put 3 as the next digit of the answer. 
Result so far: 1863.0
The remainder is 12 after subtracting 93 from 105.
Include the next digit (7) from the dividend after 12, then repeat: 127 / 31

On to step 6:
127 divided by 31 is 4 with a remainder of 3.
Write down 4 as next digit of the result. 
Result so far: 18634.0
Subtract 124 from 127 to get 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:
The number 31 fits into 30 0 times, leaving a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 18634.0
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
31 can be fit into 300 9 times, resulting in a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 18634.09
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 9:
31 goes into 210 6 times with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 18634.096
If we take 186 away from 210, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 10:
When dividing 240 by 31, we get 7 with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 18634.0967
Subtracting 217 from 240 leaves us 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.

On to step 11:
230 divided by 31 is 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 18634.09677
Subtract 217 from 230 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 18634.09677 with a remainder of 1.3e-05.