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

Going ahead to step 1:
51 goes into 7 0 times with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 7, we get 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 51

On to step 2:
79 divided by 51 is 1 with a remainder of 28.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 51 away from 79, we end up with 28.
Take the next digit (6) from the dividend and append it to 28, then repeat: 286 / 51

Step 3:
The number 51 fits into 286 5 times, leaving a remainder of 31.
The next digit of our result is 5. 
Result so far: 15.0
Subtracting 255 from 286 leaves us with 31.
Append the next digit (6) from the dividend to 31 and continue with: 316 / 51

Moving on to step 4:
The number 51 fits into 316 6 times, leaving a remainder of 10.
Record the quotient 6 as the next digit in the result. 
Result so far: 156.0
Deduct 306 from 316 and we're left with 10.
Grab the next digit (6) from the dividend, add it to 10, then carry on: 106 / 51

Advancing to step 5:
When dividing 106 by 51, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 1562.0
If we subtract 102 from 106, we get 4.
Fetch the next digit (6) from the dividend, attach it to 4 and continue: 46 / 51

On to step 6:
51 goes into 46 0 times with a remainder of 46.
The next digit of our result is 0. 
Result so far: 15620.0
Subtracting 0 from 46 leaves us with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

On to step 7:
51 can be fit into 460 9 times, resulting in a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 15620.9
Deduct 459 from 460 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 8:
The number 51 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 15620.9
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 9:
The number 51 fits into 100 1 times, leaving a remainder of 49.
Write down 1 as next digit of the result. 
Result so far: 15620.901
Subtracting 51 from 100 leaves us with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Going ahead to step 10:
If we divide 490 by 51, we get 9 and a remainder of 31.
The next digit of our result is 9. 
Result so far: 15620.9019
If we take 459 away from 490, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 11:
When dividing 310 by 51, we get 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 15620.90196
If we subtract 306 from 310, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 12:
If we divide 40 by 51, we get 0 and a remainder of 40.
The next digit of our result is 0. 
Result so far: 15620.90196
If we subtract 0 from 40, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 13:
When dividing 400 by 51, we get 7 with a remainder of 43.
Record the quotient 7 as the next digit in the result. 
Result so far: 15620.9019607
Subtracting 357 from 400 leaves us with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Advancing to step 14:
51 can be fit into 430 8 times, resulting in a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 15620.90196078
Subtracting 408 from 430 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Our division results in 15620.90196078 with a remaining 2.2e-08.