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

Advancing to step 1:
The number 51 fits into 9 0 times, leaving a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Grab the next digit (7) from the dividend, add it to 9, then carry on: 97 / 51

Moving on to step 2:
51 goes into 97 1 times with a remainder of 46.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 51 from 97 to get 46.
Append the next digit (1) from the dividend to 46 and continue with: 461 / 51

Going ahead to step 3:
The number 51 fits into 461 9 times, leaving a remainder of 2.
The next digit of our result is 9. 
Result so far: 19.0
The remainder is 2 after subtracting 459 from 461.
Include the next digit (0) from the dividend after 2, then repeat: 20 / 51

Advancing to step 4:
If we divide 20 by 51, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 190.0
The remainder is 20 after subtracting 0 from 20.
Take the next digit (1) from the dividend and append it to 20, then repeat: 201 / 51

Moving on to step 5:
When dividing 201 by 51, we get 3 with a remainder of 48.
Write down 3 as next digit of the result. 
Result so far: 1903.0
If we subtract 153 from 201, we get 48.
Grab the next digit (6) from the dividend, add it to 48, then carry on: 486 / 51

Moving on to step 6:
51 goes into 486 9 times with a remainder of 27.
Record the quotient 9 as the next digit in the result. 
Result so far: 19039.0
If we take 459 away from 486, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 7:
270 divided by 51 is 5 with a remainder of 15.
The next digit of our result is 5. 
Result so far: 19039.5
Subtract 255 from 270 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 8:
51 goes into 150 2 times with a remainder of 48.
Put 2 as the next digit of the answer. 
Result so far: 19039.52
Subtracting 102 from 150 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 9:
When dividing 480 by 51, we get 9 with a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 19039.529
If we take 459 away from 480, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 10:
When dividing 210 by 51, we get 4 with a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 19039.5294
Subtracting 204 from 210 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 11:
The number 51 fits into 60 1 times, leaving a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 19039.52941
If we subtract 51 from 60, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 12:
51 goes into 90 1 times with a remainder of 39.
Put 1 as the next digit of the answer. 
Result so far: 19039.529411
Subtracting 51 from 90 leaves us with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

The final result is 19039.529411 with a remainder of 3.9e-06.