We're dividing 778166 by 51 
The aim is to understand the frequency of 51 in 778166.

On to step 1:
51 can be fit into 7 0 times, resulting in a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 51

Going ahead to step 2:
The number 51 fits into 77 1 times, leaving a remainder of 26.
The next digit of our result is 1. 
Result so far: 1.0
If we take 51 away from 77, we end up with 26.
Include the next digit (8) from the dividend after 26, then repeat: 268 / 51

Moving on to step 3:
When dividing 268 by 51, we get 5 with a remainder of 13.
The next digit of our result is 5. 
Result so far: 15.0
If we subtract 255 from 268, we get 13.
Grab the next digit (1) from the dividend, add it to 13, then carry on: 131 / 51

On to step 4:
51 can be fit into 131 2 times, resulting in a remainder of 29.
Record the quotient 2 as the next digit in the result. 
Result so far: 152.0
Deduct 102 from 131 and we're left with 29.
Take the next digit (6) from the dividend and append it to 29, then repeat: 296 / 51

Moving on to step 5:
296 divided by 51 is 5 with a remainder of 41.
Use 5 as the next digit of our solution. 
Result so far: 1525.0
Subtract 255 from 296 to get 41.
Fetch the next digit (6) from the dividend, attach it to 41 and continue: 416 / 51

Advancing to step 6:
51 can be fit into 416 8 times, resulting in a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 15258.0
Subtract 408 from 416 to get 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 7:
80 divided by 51 is 1 with a remainder of 29.
Record the quotient 1 as the next digit in the result. 
Result so far: 15258.1
Subtract 51 from 80 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 8:
The number 51 fits into 290 5 times, leaving a remainder of 35.
The next digit of our result is 5. 
Result so far: 15258.15
The remainder is 35 after subtracting 255 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 9:
51 can be fit into 350 6 times, resulting in a remainder of 44.
The next digit of our result is 6. 
Result so far: 15258.156
The remainder is 44 after subtracting 306 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Going ahead to step 10:
When dividing 440 by 51, we get 8 with a remainder of 32.
The next digit of our result is 8. 
Result so far: 15258.1568
If we take 408 away from 440, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Let's proceed to step 11:
51 goes into 320 6 times with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 15258.15686
If we take 306 away from 320, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 12:
If we divide 140 by 51, we get 2 and a remainder of 38.
The number 2 becomes the next digit in our result. 
Result so far: 15258.156862
The remainder is 38 after subtracting 102 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 13:
If we divide 380 by 51, we get 7 and a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 15258.1568627
Subtracting 357 from 380 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 14:
51 can be fit into 230 4 times, resulting in a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 15258.15686274
Subtracting 204 from 230 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Our division results in 15258.15686274 with a remaining 2.6e-08.