We look at the division of 38938839 by 965 
The aim is to understand the frequency of 965 in 38938839.

Let's proceed to step 1:
965 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 965

Advancing to step 2:
When dividing 38 by 965, we get 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 38 to get 38.
Append the next digit (9) from the dividend to 38 and continue with: 389 / 965

Let's proceed to step 3:
965 can be fit into 389 0 times, resulting in a remainder of 389.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 389, we get 389.
Bring next digit (3) of the dividend behind the 389 and repeat the process: 3893 / 965

Going ahead to step 4:
If we divide 3893 by 965, we get 4 and a remainder of 33.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 33 after subtracting 3860 from 3893.
Take the next digit (8) from the dividend and append it to 33, then repeat: 338 / 965

Moving on to step 5:
If we divide 338 by 965, we get 0 and a remainder of 338.
Use 0 as the next digit of our solution. 
Result so far: 40.0
Subtracting 0 from 338 leaves us with 338.
Take the next digit (8) from the dividend and append it to 338, then repeat: 3388 / 965

Going ahead to step 6:
965 goes into 3388 3 times with a remainder of 493.
The number 3 becomes the next digit in our result. 
Result so far: 403.0
Deduct 2895 from 3388 and we're left with 493.
Grab the next digit (3) from the dividend, add it to 493, then carry on: 4933 / 965

Going ahead to step 7:
965 can be fit into 4933 5 times, resulting in a remainder of 108.
Put 5 as the next digit of the answer. 
Result so far: 4035.0
Subtracting 4825 from 4933 leaves us with 108.
Grab the next digit (9) from the dividend, add it to 108, then carry on: 1089 / 965

Moving on to step 8:
If we divide 1089 by 965, we get 1 and a remainder of 124.
The number 1 becomes the next digit in our result. 
Result so far: 40351.0
If we take 965 away from 1089, we end up with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Let's proceed to step 9:
The number 965 fits into 1240 1 times, leaving a remainder of 275.
Write down 1 as next digit of the result. 
Result so far: 40351.1
If we take 965 away from 1240, we end up with 275.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2750, and continue the process.

Advancing to step 10:
When dividing 2750 by 965, we get 2 with a remainder of 820.
Write down 2 as next digit of the result. 
Result so far: 40351.12
Subtract 1930 from 2750 to get 820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8200, and continue the process.

Moving on to step 11:
8200 divided by 965 is 8 with a remainder of 480.
Put 8 as the next digit of the answer. 
Result so far: 40351.128
Deduct 7720 from 8200 and we're left with 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

Step 12:
If we divide 4800 by 965, we get 4 and a remainder of 940.
Write down 4 as next digit of the result. 
Result so far: 40351.1284
The remainder is 940 after subtracting 3860 from 4800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9400, and continue the process.

Advancing to step 13:
If we divide 9400 by 965, we get 9 and a remainder of 715.
Record the quotient 9 as the next digit in the result. 
Result so far: 40351.12849
If we take 8685 away from 9400, we end up with 715.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7150, and continue the process.

Advancing to step 14:
When dividing 7150 by 965, we get 7 with a remainder of 395.
Write down 7 as next digit of the result. 
Result so far: 40351.128497
Subtracting 6755 from 7150 leaves us with 395.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3950, and continue the process.

Moving on to step 15:
965 can be fit into 3950 4 times, resulting in a remainder of 90.
The number 4 becomes the next digit in our result. 
Result so far: 40351.1284974
If we subtract 3860 from 3950, we get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Step 16:
The number 965 fits into 900 0 times, leaving a remainder of 900.
The number 0 becomes the next digit in our result. 
Result so far: 40351.1284974
Deduct 0 from 900 and we're left with 900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9000, and continue the process.

The final outcome is 40351.1284974, with a leftover of 9e-07.