We divide 821274 by 31
The aim is to understand the frequency of 31 in 821274.

On to step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Bring next digit (2) of the dividend behind the 8 and repeat the process: 82 / 31

Step 2:
If we divide 82 by 31, we get 2 and a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtract 62 from 82 to get 20.
Take the next digit (1) from the dividend and append it to 20, then repeat: 201 / 31

Let's proceed to step 3:
31 goes into 201 6 times with a remainder of 15.
Use 6 as the next digit of our solution. 
Result so far: 26.0
If we take 186 away from 201, we end up with 15.
Append the next digit (2) from the dividend to 15 and continue with: 152 / 31

Moving on to step 4:
31 goes into 152 4 times with a remainder of 28.
Record the quotient 4 as the next digit in the result. 
Result so far: 264.0
If we take 124 away from 152, we end up with 28.
Fetch the next digit (7) from the dividend, attach it to 28 and continue: 287 / 31

Advancing to step 5:
The number 31 fits into 287 9 times, leaving a remainder of 8.
Write down 9 as next digit of the result. 
Result so far: 2649.0
The remainder is 8 after subtracting 279 from 287.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 31

On to step 6:
When dividing 84 by 31, we get 2 with a remainder of 22.
The number 2 becomes the next digit in our result. 
Result so far: 26492.0
Subtract 62 from 84 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.

On to step 7:
When dividing 220 by 31, we get 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 26492.7
Subtracting 217 from 220 leaves us 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.

Going ahead to step 8:
30 divided by 31 is 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 26492.7
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 9:
If we divide 300 by 31, we get 9 and a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 26492.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.

Advancing to step 10:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 26492.7096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 11:
31 can be fit into 240 7 times, resulting in a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 26492.70967
Deduct 217 from 240 and we're left 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.

Advancing to step 12:
When dividing 230 by 31, we get 7 with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 26492.709677
If we subtract 217 from 230, 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.

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