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

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
Subtracting 0 from 6 leaves us with 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 51

Advancing to step 2:
When dividing 66 by 51, we get 1 with a remainder of 15.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 51 from 66 leaves us with 15.
Bring next digit (2) of the dividend behind the 15 and repeat the process: 152 / 51

On to step 3:
If we divide 152 by 51, we get 2 and a remainder of 50.
Put 2 as the next digit of the answer. 
Result so far: 12.0
The remainder is 50 after subtracting 102 from 152.
Include the next digit (5) from the dividend after 50, then repeat: 505 / 51

Step 4:
When dividing 505 by 51, we get 9 with a remainder of 46.
Use 9 as the next digit of our solution. 
Result so far: 129.0
If we take 459 away from 505, we end up with 46.
Grab the next digit (9) from the dividend, add it to 46, then carry on: 469 / 51

Moving on to step 5:
If we divide 469 by 51, we get 9 and a remainder of 10.
Put 9 as the next digit of the answer. 
Result so far: 1299.0
Subtract 459 from 469 to get 10.
Bring next digit (7) of the dividend behind the 10 and repeat the process: 107 / 51

Step 6:
If we divide 107 by 51, we get 2 and a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 12992.0
If we take 102 away from 107, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
When dividing 50 by 51, we get 0 with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 12992.0
Subtracting 0 from 50 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Step 8:
The number 51 fits into 500 9 times, leaving a remainder of 41.
Record the quotient 9 as the next digit in the result. 
Result so far: 12992.09
Subtracting 459 from 500 leaves us with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

On to step 9:
If we divide 410 by 51, we get 8 and a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 12992.098
The remainder is 2 after subtracting 408 from 410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 10:
20 divided by 51 is 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 12992.098
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 11:
When dividing 200 by 51, we get 3 with a remainder of 47.
The number 3 becomes the next digit in our result. 
Result so far: 12992.09803
If we subtract 153 from 200, we get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Step 12:
51 can be fit into 470 9 times, resulting in a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 12992.098039
If we subtract 459 from 470, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 13:
51 can be fit into 110 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 12992.0980392
Deduct 102 from 110 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.

Step 14:
51 can be fit into 80 1 times, resulting in a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 12992.09803921
If we take 51 away from 80, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

After the division, we end up with 12992.09803921 and a remainder of 2.9e-08.