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

On to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 31

Going ahead to step 2:
The number 31 fits into 66 2 times, leaving a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 62 from 66 and we're left with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 31

Moving on to step 3:
31 goes into 47 1 times with a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 21.0
The remainder is 16 after subtracting 31 from 47.
Grab the next digit (2) from the dividend, add it to 16, then carry on: 162 / 31

On to step 4:
31 goes into 162 5 times with a remainder of 7.
Put 5 as the next digit of the answer. 
Result so far: 215.0
Deduct 155 from 162 and we're left with 7.
Bring next digit (6) of the dividend behind the 7 and repeat the process: 76 / 31

Step 5:
76 divided by 31 is 2 with a remainder of 14.
Put 2 as the next digit of the answer. 
Result so far: 2152.0
Deduct 62 from 76 and we're left with 14.
Grab the next digit (6) from the dividend, add it to 14, then carry on: 146 / 31

On to step 6:
If we divide 146 by 31, we get 4 and a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 21524.0
Subtract 124 from 146 to get 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 7:
When dividing 220 by 31, we get 7 with a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 21524.7
If we take 217 away from 220, we end up 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.

On to step 8:
If we divide 30 by 31, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 21524.7
Subtracting 0 from 30 leaves us 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.

Let's proceed to step 9:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 21524.709
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 10:
31 goes into 210 6 times with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 21524.7096
The remainder is 24 after subtracting 186 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 11:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 21524.70967
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 12:
If we divide 230 by 31, we get 7 and a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 21524.709677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 21524.709677 with a balance of 1.3e-06.