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

On to step 1:
9 divided by 31 is 0 with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Take the next digit (5) from the dividend and append it to 9, then repeat: 95 / 31

Moving on to step 2:
31 goes into 95 3 times with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtracting 93 from 95 leaves us with 2.
Include the next digit (6) from the dividend after 2, then repeat: 26 / 31

Advancing to step 3:
If we divide 26 by 31, we get 0 and a remainder of 26.
Put 0 as the next digit of the answer. 
Result so far: 30.0
If we take 0 away from 26, we end up with 26.
Bring next digit (6) of the dividend behind the 26 and repeat the process: 266 / 31

Moving on to step 4:
When dividing 266 by 31, we get 8 with a remainder of 18.
Record the quotient 8 as the next digit in the result. 
Result so far: 308.0
If we take 248 away from 266, we end up with 18.
Bring next digit (6) of the dividend behind the 18 and repeat the process: 186 / 31

Moving on to step 5:
The number 31 fits into 186 6 times, leaving a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 3086.0
Subtracting 186 from 186 leaves us with 0.
Include the next digit (8) from the dividend after 0, then repeat: 8 / 31

Moving on to step 6:
8 divided by 31 is 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 30860.0
Subtract 0 from 8 to get 8.
Append the next digit (2) from the dividend to 8 and continue with: 82 / 31

Advancing to step 7:
31 goes into 82 2 times with a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 308602.0
Subtract 62 from 82 to get 20.
Grab the next digit (3) from the dividend, add it to 20, then carry on: 203 / 31

Moving on to step 8:
203 divided by 31 is 6 with a remainder of 17.
The next digit of our result is 6. 
Result so far: 3086026.0
If we subtract 186 from 203, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 9:
The number 31 fits into 170 5 times, leaving a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 3086026.5
If we subtract 155 from 170, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 10:
When dividing 150 by 31, we get 4 with a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 3086026.54
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 11:
31 can be fit into 260 8 times, resulting in a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 3086026.548
If we take 248 away from 260, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 12:
31 goes into 120 3 times with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 3086026.5483
Deduct 93 from 120 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 13:
If we divide 270 by 31, we get 8 and a remainder of 22.
The next digit of our result is 8. 
Result so far: 3086026.54838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 14:
If we divide 220 by 31, we get 7 and a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 3086026.548387
Subtract 217 from 220 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.

Going ahead to step 15:
31 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 3086026.548387
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 16:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 3086026.54838709
If we take 279 away from 300, we end up 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.

Our division results in 3086026.54838709 with a remaining 2.1e-08.