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

Going ahead to step 1:
The number 31 fits into 2 0 times, leaving a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 31

On to step 2:
The number 31 fits into 27 0 times, leaving a remainder of 27.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 27, we end up with 27.
Append the next digit (4) from the dividend to 27 and continue with: 274 / 31

Advancing to step 3:
31 can be fit into 274 8 times, resulting in a remainder of 26.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Deduct 248 from 274 and we're left with 26.
Include the next digit (1) from the dividend after 26, then repeat: 261 / 31

Advancing to step 4:
31 goes into 261 8 times with a remainder of 13.
Use 8 as the next digit of our solution. 
Result so far: 88.0
If we take 248 away from 261, we end up with 13.
Grab the next digit (2) from the dividend, add it to 13, then carry on: 132 / 31

Going ahead to step 5:
31 can be fit into 132 4 times, resulting in a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 884.0
If we subtract 124 from 132, we 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.

On to step 6:
When dividing 80 by 31, we get 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 884.2
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 7:
180 divided by 31 is 5 with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 884.25
If we subtract 155 from 180, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
250 divided by 31 is 8 with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 884.258
The remainder is 2 after subtracting 248 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 9:
When dividing 20 by 31, we get 0 with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 884.258
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 10:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 884.25806
If we take 186 away from 200, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 11:
31 goes into 140 4 times with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 884.258064
Subtract 124 from 140 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 12:
160 divided by 31 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 884.2580645
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 13:
If we divide 50 by 31, we get 1 and a remainder of 19.
The next digit of our result is 1. 
Result so far: 884.25806451
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.

The quotient of the division is 884.25806451, and the remainder is 1.9e-08.