We look at the division of 39578787 by 964 
The aim is to understand the frequency of 964 in 39578787.

On to step 1:
964 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 964

On to step 2:
When dividing 39 by 964, we get 0 with a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Grab the next digit (5) from the dividend, add it to 39, then carry on: 395 / 964

Going ahead to step 3:
964 can be fit into 395 0 times, resulting in a remainder of 395.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 395, we end up with 395.
Include the next digit (7) from the dividend after 395, then repeat: 3957 / 964

Going ahead to step 4:
When dividing 3957 by 964, we get 4 with a remainder of 101.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
The remainder is 101 after subtracting 3856 from 3957.
Fetch the next digit (8) from the dividend, attach it to 101 and continue: 1018 / 964

On to step 5:
If we divide 1018 by 964, we get 1 and a remainder of 54.
The next digit of our result is 1. 
Result so far: 41.0
If we take 964 away from 1018, we end up with 54.
Grab the next digit (7) from the dividend, add it to 54, then carry on: 547 / 964

Let's proceed to step 6:
547 divided by 964 is 0 with a remainder of 547.
Record the quotient 0 as the next digit in the result. 
Result so far: 410.0
Subtract 0 from 547 to get 547.
Append the next digit (8) from the dividend to 547 and continue with: 5478 / 964

Step 7:
964 can be fit into 5478 5 times, resulting in a remainder of 658.
Use 5 as the next digit of our solution. 
Result so far: 4105.0
Subtracting 4820 from 5478 leaves us with 658.
Take the next digit (7) from the dividend and append it to 658, then repeat: 6587 / 964

On to step 8:
When dividing 6587 by 964, we get 6 with a remainder of 803.
The number 6 becomes the next digit in our result. 
Result so far: 41056.0
Subtract 5784 from 6587 to get 803.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8030, and continue the process.

Moving on to step 9:
8030 divided by 964 is 8 with a remainder of 318.
Write down 8 as next digit of the result. 
Result so far: 41056.8
Subtract 7712 from 8030 to get 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Going ahead to step 10:
964 goes into 3180 3 times with a remainder of 288.
Use 3 as the next digit of our solution. 
Result so far: 41056.83
Subtract 2892 from 3180 to get 288.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2880, and continue the process.

Let's proceed to step 11:
964 can be fit into 2880 2 times, resulting in a remainder of 952.
Write down 2 as next digit of the result. 
Result so far: 41056.832
If we take 1928 away from 2880, we end up with 952.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9520, and continue the process.

Step 12:
9520 divided by 964 is 9 with a remainder of 844.
Use 9 as the next digit of our solution. 
Result so far: 41056.8329
Subtract 8676 from 9520 to get 844.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8440, and continue the process.

Step 13:
8440 divided by 964 is 8 with a remainder of 728.
Record the quotient 8 as the next digit in the result. 
Result so far: 41056.83298
Deduct 7712 from 8440 and we're left with 728.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7280, and continue the process.

Step 14:
If we divide 7280 by 964, we get 7 and a remainder of 532.
Write down 7 as next digit of the result. 
Result so far: 41056.832987
Deduct 6748 from 7280 and we're left with 532.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5320, and continue the process.

Advancing to step 15:
964 can be fit into 5320 5 times, resulting in a remainder of 500.
The next digit of our result is 5. 
Result so far: 41056.8329875
If we take 4820 away from 5320, we end up with 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Step 16:
5000 divided by 964 is 5 with a remainder of 180.
Write down 5 as next digit of the result. 
Result so far: 41056.83298755
The remainder is 180 after subtracting 4820 from 5000.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Our division results in 41056.83298755 with a remaining 1.8e-07.