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

On to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Include the next digit (4) from the dividend after 9, then repeat: 94 / 31

Advancing to step 2:
94 divided by 31 is 3 with a remainder of 1.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 93 from 94 and we're left with 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 31

Moving on to step 3:
When dividing 15 by 31, we get 0 with a remainder of 15.
Write down 0 as next digit of the result. 
Result so far: 30.0
If we take 0 away from 15, we end up with 15.
Bring next digit (6) of the dividend behind the 15 and repeat the process: 156 / 31

Advancing to step 4:
31 can be fit into 156 5 times, resulting in a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 305.0
The remainder is 1 after subtracting 155 from 156.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 31

Step 5:
31 goes into 12 0 times with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 3050.0
If we take 0 away from 12, we end up with 12.
Include the next digit (9) from the dividend after 12, then repeat: 129 / 31

On to step 6:
129 divided by 31 is 4 with a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 30504.0
The remainder is 5 after subtracting 124 from 129.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 7:
31 can be fit into 50 1 times, resulting in a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 30504.1
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

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

Step 9:
If we divide 40 by 31, we get 1 and a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 30504.161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 10:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 30504.1612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 11:
31 goes into 280 9 times with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 30504.16129
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 12:
When dividing 10 by 31, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 30504.16129
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 13:
31 goes into 100 3 times with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 30504.1612903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 14:
70 divided by 31 is 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 30504.16129032
If we subtract 62 from 70, 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.

After the division, we end up with 30504.16129032 and a remainder of 8e-09.