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

Step 1:
9 divided by 51 is 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Append the next digit (7) from the dividend to 9 and continue with: 97 / 51

Advancing to step 2:
51 goes into 97 1 times with a remainder of 46.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 51 from 97 leaves us with 46.
Fetch the next digit (7) from the dividend, attach it to 46 and continue: 467 / 51

Going ahead to step 3:
When dividing 467 by 51, we get 9 with a remainder of 8.
Use 9 as the next digit of our solution. 
Result so far: 19.0
If we subtract 459 from 467, we get 8.
Fetch the next digit (8) from the dividend, attach it to 8 and continue: 88 / 51

Going ahead to step 4:
88 divided by 51 is 1 with a remainder of 37.
Write down 1 as next digit of the result. 
Result so far: 191.0
Subtracting 51 from 88 leaves us with 37.
Take the next digit (8) from the dividend and append it to 37, then repeat: 378 / 51

On to step 5:
51 can be fit into 378 7 times, resulting in a remainder of 21.
Put 7 as the next digit of the answer. 
Result so far: 1917.0
If we take 357 away from 378, we end up with 21.
Include the next digit (5) from the dividend after 21, then repeat: 215 / 51

On to step 6:
If we divide 215 by 51, we get 4 and a remainder of 11.
Put 4 as the next digit of the answer. 
Result so far: 19174.0
Deduct 204 from 215 and we're left with 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 7:
51 can be fit into 110 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 19174.2
If we subtract 102 from 110, we 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.

Let's proceed to step 8:
When dividing 80 by 51, we get 1 with a remainder of 29.
Record the quotient 1 as the next digit in the result. 
Result so far: 19174.21
Subtracting 51 from 80 leaves us 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.

On to step 9:
The number 51 fits into 290 5 times, leaving a remainder of 35.
The next digit of our result is 5. 
Result so far: 19174.215
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.

Advancing to step 10:
350 divided by 51 is 6 with a remainder of 44.
Put 6 as the next digit of the answer. 
Result so far: 19174.2156
Deduct 306 from 350 and we're left with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Step 11:
51 goes into 440 8 times with a remainder of 32.
The next digit of our result is 8. 
Result so far: 19174.21568
If we subtract 408 from 440, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 12:
51 goes into 320 6 times with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 19174.215686
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.

Going ahead to step 13:
140 divided by 51 is 2 with a remainder of 38.
The number 2 becomes the next digit in our result. 
Result so far: 19174.2156862
If we take 102 away from 140, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 14:
If we divide 380 by 51, we get 7 and a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 19174.21568627
Deduct 357 from 380 and we're left 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.

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