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

Step 1:
When dividing 6 by 31, we get 0 with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 31

Let's proceed to step 2:
The number 31 fits into 67 2 times, leaving a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 5 after subtracting 62 from 67.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 31

Moving on to step 3:
31 can be fit into 54 1 times, resulting in a remainder of 23.
The next digit of our result is 1. 
Result so far: 21.0
Subtracting 31 from 54 leaves us with 23.
Bring next digit (5) of the dividend behind the 23 and repeat the process: 235 / 31

Advancing to step 4:
235 divided by 31 is 7 with a remainder of 18.
Record the quotient 7 as the next digit in the result. 
Result so far: 217.0
Subtract 217 from 235 to get 18.
Grab the next digit (7) from the dividend, add it to 18, then carry on: 187 / 31

Going ahead to step 5:
187 divided by 31 is 6 with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 2176.0
The remainder is 1 after subtracting 186 from 187.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 31

On to step 6:
If we divide 12 by 31, we get 0 and a remainder of 12.
Write down 0 as next digit of the result. 
Result so far: 21760.0
Deduct 0 from 12 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 7:
31 goes into 120 3 times with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 21760.3
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.

Step 8:
When dividing 270 by 31, we get 8 with a remainder of 22.
The next digit of our result is 8. 
Result so far: 21760.38
If we take 248 away from 270, we end up 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.

Going ahead to step 9:
The number 31 fits into 220 7 times, leaving a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 21760.387
If we subtract 217 from 220, we get 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 10:
When dividing 30 by 31, we get 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 21760.387
The remainder is 30 after subtracting 0 from 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 11:
300 divided by 31 is 9 with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 21760.38709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 12:
31 goes into 210 6 times with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 21760.387096
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 13:
240 divided by 31 is 7 with a remainder of 23.
The next digit of our result is 7. 
Result so far: 21760.3870967
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.

Advancing to step 14:
31 goes into 230 7 times with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 21760.38709677
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 21760.38709677, and the remainder is 1.3e-08.