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

On to step 1:
3 divided by 31 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (3) from the dividend, attach it to 3 and continue: 33 / 31

Step 2:
31 goes into 33 1 times with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 2 after subtracting 31 from 33.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 31

Moving on to step 3:
31 goes into 22 0 times with a remainder of 22.
Use 0 as the next digit of our solution. 
Result so far: 10.0
Deduct 0 from 22 and we're left with 22.
Include the next digit (7) from the dividend after 22, then repeat: 227 / 31

Advancing to step 4:
31 can be fit into 227 7 times, resulting in a remainder of 10.
The number 7 becomes the next digit in our result. 
Result so far: 107.0
The remainder is 10 after subtracting 217 from 227.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 5:
31 goes into 100 3 times with a remainder of 7.
The next digit of our result is 3. 
Result so far: 107.3
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 6:
When dividing 70 by 31, we get 2 with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 107.32
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 7:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 107.322
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.

Our division results in 107.322 with a remaining 0.0018.