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

Let's proceed to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 31

Let's proceed to step 2:
The number 31 fits into 30 0 times, leaving a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 30, we get 30.
Grab the next digit (2) from the dividend, add it to 30, then carry on: 302 / 31

Moving on to step 3:
If we divide 302 by 31, we get 9 and a remainder of 23.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
Subtract 279 from 302 to get 23.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 31

Advancing to step 4:
31 goes into 230 7 times with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 97.0
If we subtract 217 from 230, we get 13.
Append the next digit (1) from the dividend to 13 and continue with: 131 / 31

Let's proceed to step 5:
If we divide 131 by 31, we get 4 and a remainder of 7.
Write down 4 as next digit of the result. 
Result so far: 974.0
Subtracting 124 from 131 leaves us with 7.
Include the next digit (1) from the dividend after 7, then repeat: 71 / 31

On to step 6:
31 can be fit into 71 2 times, resulting in a remainder of 9.
Write down 2 as next digit of the result. 
Result so far: 9742.0
Deduct 62 from 71 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 7:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The next digit of our result is 2. 
Result so far: 9742.2
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 8:
31 can be fit into 280 9 times, resulting in a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 9742.29
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 9:
If we divide 10 by 31, we get 0 and a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 9742.29
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.

Going ahead to step 10:
When dividing 100 by 31, we get 3 with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 9742.2903
If we take 93 away from 100, we end up 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.

Let's proceed to step 11:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 9742.29032
Deduct 62 from 70 and we're left 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.

Going ahead to step 12:
80 divided by 31 is 2 with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 9742.290322
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.

In conclusion, the division gives 9742.290322 with a balance of 1.8e-06.