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

Advancing to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Grab the next digit (2) from the dividend, add it to 5, then carry on: 52 / 31

Let's proceed to step 2:
31 can be fit into 52 1 times, resulting in a remainder of 21.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 31 from 52 leaves us with 21.
Include the next digit (9) from the dividend after 21, then repeat: 219 / 31

Going ahead to step 3:
If we divide 219 by 31, we get 7 and a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 17.0
If we take 217 away from 219, we end up with 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 31

Step 4:
31 can be fit into 25 0 times, resulting in a remainder of 25.
Put 0 as the next digit of the answer. 
Result so far: 170.0
If we take 0 away from 25, we end up with 25.
Include the next digit (0) from the dividend after 25, then repeat: 250 / 31

On to step 5:
If we divide 250 by 31, we get 8 and a remainder of 2.
The next digit of our result is 8. 
Result so far: 1708.0
If we subtract 248 from 250, we get 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 31

Step 6:
If we divide 21 by 31, we get 0 and a remainder of 21.
The number 0 becomes the next digit in our result. 
Result so far: 17080.0
Deduct 0 from 21 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 7:
If we divide 210 by 31, we get 6 and a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 17080.6
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
If we divide 240 by 31, we get 7 and a remainder of 23.
The next digit of our result is 7. 
Result so far: 17080.67
If we subtract 217 from 240, we get 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 9:
When dividing 230 by 31, we get 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 17080.677
Subtracting 217 from 230 leaves us with 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 17080.677 with a remainder of 0.0013.