We look at the division of 667704 by 51 
The aim is to understand the frequency of 51 in 667704.

Going ahead to step 1:
The number 51 fits into 6 0 times, leaving a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Take the next digit (6) from the dividend and append it to 6, then repeat: 66 / 51

Moving on to step 2:
66 divided by 51 is 1 with a remainder of 15.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 51 from 66 to get 15.
Append the next digit (7) from the dividend to 15 and continue with: 157 / 51

Going ahead to step 3:
The number 51 fits into 157 3 times, leaving a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
The remainder is 4 after subtracting 153 from 157.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 51

Advancing to step 4:
The number 51 fits into 47 0 times, leaving a remainder of 47.
Use 0 as the next digit of our solution. 
Result so far: 130.0
Subtracting 0 from 47 leaves us with 47.
Take the next digit (0) from the dividend and append it to 47, then repeat: 470 / 51

Moving on to step 5:
51 goes into 470 9 times with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 1309.0
If we subtract 459 from 470, we get 11.
Take the next digit (4) from the dividend and append it to 11, then repeat: 114 / 51

Moving on to step 6:
51 goes into 114 2 times with a remainder of 12.
Record the quotient 2 as the next digit in the result. 
Result so far: 13092.0
If we subtract 102 from 114, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 7:
51 goes into 120 2 times with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 13092.2
Deduct 102 from 120 and we're left 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.

Going ahead to step 8:
If we divide 180 by 51, we get 3 and a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 13092.23
If we subtract 153 from 180, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 9:
If we divide 270 by 51, we get 5 and a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 13092.235
If we subtract 255 from 270, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 10:
If we divide 150 by 51, we get 2 and a remainder of 48.
Write down 2 as next digit of the result. 
Result so far: 13092.2352
If we take 102 away from 150, we end up with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Step 11:
The number 51 fits into 480 9 times, leaving a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 13092.23529
The remainder is 21 after subtracting 459 from 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 12:
If we divide 210 by 51, we get 4 and a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 13092.235294
The remainder is 6 after subtracting 204 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 13:
When dividing 60 by 51, we get 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 13092.2352941
Deduct 51 from 60 and we're left 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.

Moving on to step 14:
51 can be fit into 90 1 times, resulting in a remainder of 39.
Put 1 as the next digit of the answer. 
Result so far: 13092.23529411
Subtract 51 from 90 to get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Our division results in 13092.23529411 with a remaining 3.9e-08.