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

On to step 1:
If we divide 2 by 31, we get 0 and a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 31

Advancing to step 2:
When dividing 23 by 31, we get 0 with a remainder of 23.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 23 after subtracting 0 from 23.
Fetch the next digit (7) from the dividend, attach it to 23 and continue: 237 / 31

Advancing to step 3:
31 can be fit into 237 7 times, resulting in a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we take 217 away from 237, we end up with 20.
Grab the next digit (8) from the dividend, add it to 20, then carry on: 208 / 31

Advancing to step 4:
If we divide 208 by 31, we get 6 and a remainder of 22.
Record the quotient 6 as the next digit in the result. 
Result so far: 76.0
The remainder is 22 after subtracting 186 from 208.
Grab the next digit (3) from the dividend, add it to 22, then carry on: 223 / 31

Let's proceed to step 5:
If we divide 223 by 31, we get 7 and a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 767.0
Deduct 217 from 223 and we're left with 6.
Bring next digit (7) of the dividend behind the 6 and repeat the process: 67 / 31

Step 6:
31 goes into 67 2 times with a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 7672.0
If we take 62 away from 67, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 7672.1
Deduct 31 from 50 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 8:
31 can be fit into 190 6 times, resulting in a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 7672.16
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 9:
40 divided by 31 is 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 7672.161
Deduct 31 from 40 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.

On to step 10:
90 divided by 31 is 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 7672.1612
Subtracting 62 from 90 leaves us 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.

On to step 11:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 7672.16129
Deduct 279 from 280 and we're left 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 12:
10 divided by 31 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 7672.16129
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.

Moving on to step 13:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 7672.1612903
Deduct 93 from 100 and we're left 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 14:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 7672.16129032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Our division results in 7672.16129032 with a remaining 8e-09.