We're dividing 310414 by 31 
The aim is to understand the frequency of 31 in 310414.

Let's proceed to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 31

Advancing to step 2:
31 divided by 31 is 1 with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 31 from 31 leaves us with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 31

Advancing to step 3:
The number 31 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we take 0 away from 0, we end up with 0.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 31

Moving on to step 4:
The number 31 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 100.0
If we subtract 0 from 4, we get 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 31

Advancing to step 5:
When dividing 41 by 31, we get 1 with a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 1001.0
The remainder is 10 after subtracting 31 from 41.
Take the next digit (4) from the dividend and append it to 10, then repeat: 104 / 31

Moving on to step 6:
104 divided by 31 is 3 with a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 10013.0
Deduct 93 from 104 and we're left 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.

Moving on to step 7:
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: 10013.3
Subtract 93 from 110 to get 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 8:
31 goes into 170 5 times with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 10013.35
If we take 155 away from 170, we end up 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.

Advancing to step 9:
The number 31 fits into 150 4 times, leaving a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 10013.354
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 10:
If we divide 260 by 31, we get 8 and a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 10013.3548
The remainder is 12 after subtracting 248 from 260.
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 11:
When dividing 120 by 31, we get 3 with a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 10013.35483
If we subtract 93 from 120, we 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.

Moving on to step 12:
31 goes into 270 8 times with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 10013.354838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 13:
If we divide 220 by 31, we get 7 and a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 10013.3548387
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 14:
30 divided by 31 is 0 with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 10013.3548387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Our division results in 10013.3548387 with a remaining 3e-08.