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

Let's proceed to step 1:
3 divided by 31 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (2) from the dividend, add it to 3, then carry on: 32 / 31

Step 2:
The number 31 fits into 32 1 times, leaving a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 31 from 32 leaves us with 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 31

Let's proceed to step 3:
When dividing 11 by 31, we get 0 with a remainder of 11.
Put 0 as the next digit of the answer. 
Result so far: 10.0
If we subtract 0 from 11, we get 11.
Fetch the next digit (8) from the dividend, attach it to 11 and continue: 118 / 31

Going ahead to step 4:
The number 31 fits into 118 3 times, leaving a remainder of 25.
The next digit of our result is 3. 
Result so far: 103.0
If we take 93 away from 118, we end up with 25.
Bring next digit (5) of the dividend behind the 25 and repeat the process: 255 / 31

Going ahead to step 5:
If we divide 255 by 31, we get 8 and a remainder of 7.
Record the quotient 8 as the next digit in the result. 
Result so far: 1038.0
Deduct 248 from 255 and we're left with 7.
Append the next digit (5) from the dividend to 7 and continue with: 75 / 31

Let's proceed to step 6:
When dividing 75 by 31, we get 2 with a remainder of 13.
The next digit of our result is 2. 
Result so far: 10382.0
If we subtract 62 from 75, 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.

Advancing to step 7:
If we divide 130 by 31, we get 4 and a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 10382.4
The remainder is 6 after subtracting 124 from 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 8:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 10382.41
Subtract 31 from 60 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 9:
The number 31 fits into 290 9 times, leaving a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 10382.419
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 10:
When dividing 110 by 31, we get 3 with a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 10382.4193
If we take 93 away from 110, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 11:
If we divide 170 by 31, we get 5 and a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 10382.41935
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 12:
150 divided by 31 is 4 with a remainder of 26.
The next digit of our result is 4. 
Result so far: 10382.419354
Subtracting 124 from 150 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 13:
31 can be fit into 260 8 times, resulting in a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 10382.4193548
Subtracting 248 from 260 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 14:
If we divide 120 by 31, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 10382.41935483
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

After the division, we end up with 10382.41935483 and a remainder of 2.7e-08.