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

Let's proceed to step 1:
The number 51 fits into 9 0 times, leaving a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Include the next digit (7) from the dividend after 9, then repeat: 97 / 51

On to step 2:
The number 51 fits into 97 1 times, leaving a remainder of 46.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 51 away from 97, we end up with 46.
Take the next digit (8) from the dividend and append it to 46, then repeat: 468 / 51

Going ahead to step 3:
The number 51 fits into 468 9 times, leaving a remainder of 9.
The next digit of our result is 9. 
Result so far: 19.0
If we take 459 away from 468, we end up with 9.
Append the next digit (0) from the dividend to 9 and continue with: 90 / 51

Going ahead to step 4:
If we divide 90 by 51, we get 1 and a remainder of 39.
The next digit of our result is 1. 
Result so far: 191.0
If we subtract 51 from 90, we get 39.
Append the next digit (3) from the dividend to 39 and continue with: 393 / 51

Advancing to step 5:
51 goes into 393 7 times with a remainder of 36.
Write down 7 as next digit of the result. 
Result so far: 1917.0
Subtract 357 from 393 to get 36.
Grab the next digit (5) from the dividend, add it to 36, then carry on: 365 / 51

Step 6:
If we divide 365 by 51, we get 7 and a remainder of 8.
The next digit of our result is 7. 
Result so far: 19177.0
Subtracting 357 from 365 leaves us 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.

On to step 7:
51 can be fit into 80 1 times, resulting in a remainder of 29.
The next digit of our result is 1. 
Result so far: 19177.1
Deduct 51 from 80 and we're left 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.

Step 8:
When dividing 290 by 51, we get 5 with a remainder of 35.
The next digit of our result is 5. 
Result so far: 19177.15
If we take 255 away from 290, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Let's proceed to step 9:
350 divided by 51 is 6 with a remainder of 44.
Write down 6 as next digit of the result. 
Result so far: 19177.156
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.

Moving on to step 10:
51 goes into 440 8 times with a remainder of 32.
The next digit of our result is 8. 
Result so far: 19177.1568
Subtracting 408 from 440 leaves us 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.

Step 11:
The number 51 fits into 320 6 times, leaving a remainder of 14.
The next digit of our result is 6. 
Result so far: 19177.15686
The remainder is 14 after subtracting 306 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 12:
When dividing 140 by 51, we get 2 with a remainder of 38.
Put 2 as the next digit of the answer. 
Result so far: 19177.156862
Subtracting 102 from 140 leaves us 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.

On to step 13:
380 divided by 51 is 7 with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 19177.1568627
If we take 357 away from 380, we end up 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.

Going ahead to step 14:
When dividing 230 by 51, we get 4 with a remainder of 26.
The next digit of our result is 4. 
Result so far: 19177.15686274
Subtract 204 from 230 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

The final result is 19177.15686274 with a remainder of 2.6e-08.