We're dividing 297849 by 31 
The aim is to understand the frequency of 31 in 297849.

Going ahead to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 31

Step 2:
31 goes into 29 0 times with a remainder of 29.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 29, we get 29.
Fetch the next digit (7) from the dividend, attach it to 29 and continue: 297 / 31

Advancing to step 3:
The number 31 fits into 297 9 times, leaving a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
The remainder is 18 after subtracting 279 from 297.
Bring next digit (8) of the dividend behind the 18 and repeat the process: 188 / 31

Advancing to step 4:
The number 31 fits into 188 6 times, leaving a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 96.0
Subtracting 186 from 188 leaves us with 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 31

Going ahead to step 5:
31 goes into 24 0 times with a remainder of 24.
Use 0 as the next digit of our solution. 
Result so far: 960.0
Deduct 0 from 24 and we're left with 24.
Fetch the next digit (9) from the dividend, attach it to 24 and continue: 249 / 31

Moving on to step 6:
249 divided by 31 is 8 with a remainder of 1.
The number 8 becomes the next digit in our result. 
Result so far: 9608.0
Subtract 248 from 249 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
The number 31 fits into 10 0 times, leaving a remainder of 10.
The next digit of our result is 0. 
Result so far: 9608.0
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 8:
100 divided by 31 is 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 9608.03
The remainder is 7 after subtracting 93 from 100.
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 9:
When dividing 70 by 31, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 9608.032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 10:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 9608.0322
If we subtract 62 from 80, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 9608.0322 and a remainder of 0.00018.