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

On to step 1:
If we divide 9 by 31, we get 0 and a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Bring next digit (6) of the dividend behind the 9 and repeat the process: 96 / 31

Let's proceed to step 2:
When dividing 96 by 31, we get 3 with a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 93 from 96, we get 3.
Include the next digit (5) from the dividend after 3, then repeat: 35 / 31

Step 3:
When dividing 35 by 31, we get 1 with a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 31.0
Deduct 31 from 35 and we're left with 4.
Fetch the next digit (3) from the dividend, attach it to 4 and continue: 43 / 31

Let's proceed to step 4:
31 can be fit into 43 1 times, resulting in a remainder of 12.
The next digit of our result is 1. 
Result so far: 311.0
If we subtract 31 from 43, we get 12.
Take the next digit (0) from the dividend and append it to 12, then repeat: 120 / 31

Moving on to step 5:
31 goes into 120 3 times with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 3113.0
If we take 93 away from 120, we end up with 27.
Fetch the next digit (9) from the dividend, attach it to 27 and continue: 279 / 31

On to step 6:
If we divide 279 by 31, we get 9 and a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 31139.0
If we take 279 away from 279, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 7:
When dividing 0 by 31, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 31139.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
31 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 31139.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 31139.0 and a remainder of 0.0.