562495 divided by 31 
The aim is to understand the frequency of 31 in 562495.

Step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (6) from the dividend after 5, then repeat: 56 / 31

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

Going ahead to step 3:
When dividing 252 by 31, we get 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 18.0
Subtracting 248 from 252 leaves us with 4.
Take the next digit (4) from the dividend and append it to 4, then repeat: 44 / 31

On to step 4:
If we divide 44 by 31, we get 1 and a remainder of 13.
Write down 1 as next digit of the result. 
Result so far: 181.0
Subtract 31 from 44 to get 13.
Grab the next digit (9) from the dividend, add it to 13, then carry on: 139 / 31

Moving on to step 5:
31 goes into 139 4 times with a remainder of 15.
Record the quotient 4 as the next digit in the result. 
Result so far: 1814.0
The remainder is 15 after subtracting 124 from 139.
Take the next digit (5) from the dividend and append it to 15, then repeat: 155 / 31

On to step 6:
31 goes into 155 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 18145.0
Subtract 155 from 155 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 7:
If we divide 0 by 31, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 18145.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
If we divide 0 by 31, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 18145.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 18145.0 with a remaining 0.0.