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

Let's proceed to step 1:
If we divide 2 by 31, we get 0 and a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 31

Moving on to step 2:
If we divide 29 by 31, we get 0 and a remainder of 29.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 29 and we're left with 29.
Include the next digit (6) from the dividend after 29, then repeat: 296 / 31

Moving on to step 3:
When dividing 296 by 31, we get 9 with a remainder of 17.
Put 9 as the next digit of the answer. 
Result so far: 9.0
If we take 279 away from 296, we end up with 17.
Include the next digit (6) from the dividend after 17, then repeat: 176 / 31

Let's proceed to step 4:
The number 31 fits into 176 5 times, leaving a remainder of 21.
The number 5 becomes the next digit in our result. 
Result so far: 95.0
If we subtract 155 from 176, we get 21.
Include the next digit (6) from the dividend after 21, then repeat: 216 / 31

Going ahead to step 5:
If we divide 216 by 31, we get 6 and a remainder of 30.
The number 6 becomes the next digit in our result. 
Result so far: 956.0
If we take 186 away from 216, we end up with 30.
Take the next digit (3) from the dividend and append it to 30, then repeat: 303 / 31

On to step 6:
31 goes into 303 9 times with a remainder of 24.
The next digit of our result is 9. 
Result so far: 9569.0
The remainder is 24 after subtracting 279 from 303.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 7:
If we divide 240 by 31, we get 7 and a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 9569.7
The remainder is 23 after subtracting 217 from 240.
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 8:
230 divided by 31 is 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 9569.77
If we take 217 away from 230, we end up 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.

After the division, we end up with 9569.77 and a remainder of 0.013.