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

Moving on to step 1:
6 divided by 31 is 0 with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 31

Moving on to step 2:
64 divided by 31 is 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 62 away from 64, we end up with 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 31

Moving on to step 3:
The number 31 fits into 25 0 times, leaving a remainder of 25.
The next digit of our result is 0. 
Result so far: 20.0
If we subtract 0 from 25, we get 25.
Take the next digit (0) from the dividend and append it to 25, then repeat: 250 / 31

Let's proceed to step 4:
31 can be fit into 250 8 times, resulting in a remainder of 2.
The next digit of our result is 8. 
Result so far: 208.0
Deduct 248 from 250 and we're left with 2.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 31

Step 5:
31 goes into 23 0 times with a remainder of 23.
The next digit of our result is 0. 
Result so far: 2080.0
Deduct 0 from 23 and we're left with 23.
Bring next digit (6) of the dividend behind the 23 and repeat the process: 236 / 31

Step 6:
If we divide 236 by 31, we get 7 and a remainder of 19.
The number 7 becomes the next digit in our result. 
Result so far: 20807.0
Subtracting 217 from 236 leaves us 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.

On to step 7:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 20807.6
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
When dividing 40 by 31, we get 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 20807.61
Subtracting 31 from 40 leaves us with 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 9:
31 goes into 90 2 times with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 20807.612
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 10:
If we divide 280 by 31, we get 9 and a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 20807.6129
Subtract 279 from 280 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 11:
31 goes into 10 0 times with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 20807.6129
If we take 0 away from 10, we end up 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.

On to step 12:
31 goes into 100 3 times with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 20807.612903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 13:
If we divide 70 by 31, we get 2 and a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 20807.6129032
Deduct 62 from 70 and we're left with 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 14:
31 goes into 80 2 times with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 20807.61290322
Subtracting 62 from 80 leaves us 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.

In conclusion, the division gives 20807.61290322 with a balance of 1.8e-08.