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

Step 1:
51 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 51

Let's proceed to step 2:
If we divide 39 by 51, we get 0 and a remainder of 39.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 39 after subtracting 0 from 39.
Include the next digit (0) from the dividend after 39, then repeat: 390 / 51

Let's proceed to step 3:
The number 51 fits into 390 7 times, leaving a remainder of 33.
Use 7 as the next digit of our solution. 
Result so far: 7.0
If we take 357 away from 390, we end up with 33.
Append the next digit (1) from the dividend to 33 and continue with: 331 / 51

Step 4:
331 divided by 51 is 6 with a remainder of 25.
Use 6 as the next digit of our solution. 
Result so far: 76.0
If we take 306 away from 331, we end up with 25.
Include the next digit (7) from the dividend after 25, then repeat: 257 / 51

On to step 5:
51 can be fit into 257 5 times, resulting in a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 765.0
Subtract 255 from 257 to get 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 51

Moving on to step 6:
If we divide 27 by 51, we get 0 and a remainder of 27.
Write down 0 as next digit of the result. 
Result so far: 7650.0
Subtract 0 from 27 to get 27.
Include the next digit (9) from the dividend after 27, then repeat: 279 / 51

Let's proceed to step 7:
If we divide 279 by 51, we get 5 and a remainder of 24.
Record the quotient 5 as the next digit in the result. 
Result so far: 76505.0
Deduct 255 from 279 and we're left with 24.
Grab the next digit (8) from the dividend, add it to 24, then carry on: 248 / 51

On to step 8:
51 goes into 248 4 times with a remainder of 44.
The number 4 becomes the next digit in our result. 
Result so far: 765054.0
Deduct 204 from 248 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 9:
If we divide 440 by 51, we get 8 and a remainder of 32.
Put 8 as the next digit of the answer. 
Result so far: 765054.8
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 10:
320 divided by 51 is 6 with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 765054.86
If we subtract 306 from 320, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 11:
When dividing 140 by 51, we get 2 with a remainder of 38.
Use 2 as the next digit of our solution. 
Result so far: 765054.862
If we subtract 102 from 140, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 12:
51 can be fit into 380 7 times, resulting in a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 765054.8627
The remainder is 23 after subtracting 357 from 380.
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 13:
If we divide 230 by 51, we get 4 and a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 765054.86274
If we take 204 away from 230, we end up 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.

Moving on to step 14:
51 goes into 260 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 765054.862745
The remainder is 5 after subtracting 255 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 15:
When dividing 50 by 51, we get 0 with a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 765054.862745
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.

On to step 16:
The number 51 fits into 500 9 times, leaving a remainder of 41.
Write down 9 as next digit of the result. 
Result so far: 765054.86274509
If we subtract 459 from 500, we get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

The final result is 765054.86274509 with a remainder of 4.1e-08.