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

Step 1:
The number 31 fits into 9 0 times, leaving a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Fetch the next digit (9) from the dividend, attach it to 9 and continue: 99 / 31

Going ahead to step 2:
When dividing 99 by 31, we get 3 with a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we take 93 away from 99, we end up with 6.
Take the next digit (0) from the dividend and append it to 6, then repeat: 60 / 31

On to step 3:
31 can be fit into 60 1 times, resulting in a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 31.0
Subtract 31 from 60 to get 29.
Bring next digit (9) of the dividend behind the 29 and repeat the process: 299 / 31

Advancing to step 4:
299 divided by 31 is 9 with a remainder of 20.
Use 9 as the next digit of our solution. 
Result so far: 319.0
Deduct 279 from 299 and we're left with 20.
Take the next digit (9) from the dividend and append it to 20, then repeat: 209 / 31

Moving on to step 5:
When dividing 209 by 31, we get 6 with a remainder of 23.
Use 6 as the next digit of our solution. 
Result so far: 3196.0
Subtracting 186 from 209 leaves us with 23.
Take the next digit (8) from the dividend and append it to 23, then repeat: 238 / 31

On to step 6:
31 goes into 238 7 times with a remainder of 21.
The next digit of our result is 7. 
Result so far: 31967.0
Subtract 217 from 238 to get 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 7:
31 goes into 210 6 times with a remainder of 24.
The next digit of our result is 6. 
Result so far: 31967.6
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 8:
240 divided by 31 is 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 31967.67
If we subtract 217 from 240, we 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.

Step 9:
If we divide 230 by 31, we get 7 and a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 31967.677
If we subtract 217 from 230, we get 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 quotient of the division is 31967.677, and the remainder is 0.0013.