We divide 330116 by 31
The aim is to understand the frequency of 31 in 330116.

Step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (3) from the dividend to 3 and continue with: 33 / 31

Moving on to step 2:
33 divided by 31 is 1 with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
If we take 31 away from 33, we end up with 2.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 31

On to step 3:
20 divided by 31 is 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 10.0
If we subtract 0 from 20, we get 20.
Grab the next digit (1) from the dividend, add it to 20, then carry on: 201 / 31

Moving on to step 4:
The number 31 fits into 201 6 times, leaving a remainder of 15.
The number 6 becomes the next digit in our result. 
Result so far: 106.0
Deduct 186 from 201 and we're left with 15.
Take the next digit (1) from the dividend and append it to 15, then repeat: 151 / 31

Advancing to step 5:
31 can be fit into 151 4 times, resulting in a remainder of 27.
Write down 4 as next digit of the result. 
Result so far: 1064.0
The remainder is 27 after subtracting 124 from 151.
Fetch the next digit (6) from the dividend, attach it to 27 and continue: 276 / 31

Going ahead to step 6:
31 goes into 276 8 times with a remainder of 28.
Record the quotient 8 as the next digit in the result. 
Result so far: 10648.0
If we take 248 away from 276, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 7:
280 divided by 31 is 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 10648.9
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 8:
If we divide 10 by 31, we get 0 and a remainder of 10.
The next digit of our result is 0. 
Result so far: 10648.9
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 9:
100 divided by 31 is 3 with a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 10648.903
Subtracting 93 from 100 leaves us 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.

Going ahead to step 10:
70 divided by 31 is 2 with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 10648.9032
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.

On to step 11:
80 divided by 31 is 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 10648.90322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 10648.90322, and the remainder is 1.8e-05.