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

Going ahead to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 31

Let's proceed to step 2:
The number 31 fits into 31 1 times, leaving a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 31 from 31, we get 0.
Take the next digit (6) from the dividend and append it to 0, then repeat: 6 / 31

Going ahead to step 3:
31 can be fit into 6 0 times, resulting in a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we take 0 away from 6, we end up with 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 31

Going ahead to step 4:
31 can be fit into 68 2 times, resulting in a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 102.0
Subtracting 62 from 68 leaves us with 6.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 31

Going ahead to step 5:
62 divided by 31 is 2 with a remainder of 0.
The next digit of our result is 2. 
Result so far: 1022.0
If we subtract 62 from 62, we get 0.
Take the next digit (3) from the dividend and append it to 0, then repeat: 3 / 31

Let's proceed to step 6:
3 divided by 31 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 10220.0
The remainder is 3 after subtracting 0 from 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
The number 31 fits into 30 0 times, leaving a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 10220.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.

Moving on to step 8:
300 divided by 31 is 9 with a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 10220.09
Deduct 279 from 300 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.

On to step 9:
When dividing 210 by 31, we get 6 with a remainder of 24.
The next digit of our result is 6. 
Result so far: 10220.096
Deduct 186 from 210 and we're left 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.

Going ahead to step 10:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 10220.0967
Subtract 217 from 240 to 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.

Let's proceed to step 11:
31 goes into 230 7 times with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 10220.09677
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 10220.09677 with a remainder of 1.3e-05.