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

Moving on to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 31

Going ahead to step 2:
When dividing 26 by 31, we get 0 with a remainder of 26.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 26 and we're left with 26.
Append the next digit (6) from the dividend to 26 and continue with: 266 / 31

Going ahead to step 3:
266 divided by 31 is 8 with a remainder of 18.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we take 248 away from 266, we end up with 18.
Grab the next digit (8) from the dividend, add it to 18, then carry on: 188 / 31

Step 4:
31 can be fit into 188 6 times, resulting in a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 86.0
Subtract 186 from 188 to get 2.
Append the next digit (8) from the dividend to 2 and continue with: 28 / 31

On to step 5:
31 can be fit into 28 0 times, resulting in a remainder of 28.
Use 0 as the next digit of our solution. 
Result so far: 860.0
If we take 0 away from 28, we end up with 28.
Take the next digit (6) from the dividend and append it to 28, then repeat: 286 / 31

Moving on to step 6:
31 goes into 286 9 times with a remainder of 7.
Write down 9 as next digit of the result. 
Result so far: 8609.0
Deduct 279 from 286 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
31 can be fit into 70 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 8609.2
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 8:
80 divided by 31 is 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 8609.22
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 8609.22 with a remainder of 0.018.