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

On to step 1:
The number 31 fits into 2 0 times, leaving a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 31

Advancing to step 2:
31 can be fit into 24 0 times, resulting in a remainder of 24.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 24 to get 24.
Take the next digit (7) from the dividend and append it to 24, then repeat: 247 / 31

Advancing to step 3:
If we divide 247 by 31, we get 7 and a remainder of 30.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we subtract 217 from 247, we get 30.
Take the next digit (1) from the dividend and append it to 30, then repeat: 301 / 31

Advancing to step 4:
If we divide 301 by 31, we get 9 and a remainder of 22.
Put 9 as the next digit of the answer. 
Result so far: 79.0
Subtract 279 from 301 to get 22.
Take the next digit (6) from the dividend and append it to 22, then repeat: 226 / 31

Going ahead to step 5:
When dividing 226 by 31, we get 7 with a remainder of 9.
Record the quotient 7 as the next digit in the result. 
Result so far: 797.0
Deduct 217 from 226 and we're left with 9.
Take the next digit (2) from the dividend and append it to 9, then repeat: 92 / 31

Advancing to step 6:
31 can be fit into 92 2 times, resulting in a remainder of 30.
Put 2 as the next digit of the answer. 
Result so far: 7972.0
The remainder is 30 after subtracting 62 from 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 7:
31 goes into 300 9 times with a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 7972.9
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.

Let's proceed to step 8:
When dividing 210 by 31, we get 6 with a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 7972.96
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.

Step 9:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 7972.967
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.

Moving on to step 10:
When dividing 230 by 31, we get 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 7972.9677
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 outcome is 7972.9677, with a leftover of 0.00013.