Let's divide 798162 by 51
The aim is to understand the frequency of 51 in 798162.

Step 1:
7 divided by 51 is 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 51

Advancing to step 2:
51 goes into 79 1 times with a remainder of 28.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 51 away from 79, we end up with 28.
Append the next digit (8) from the dividend to 28 and continue with: 288 / 51

Going ahead to step 3:
If we divide 288 by 51, we get 5 and a remainder of 33.
Write down 5 as next digit of the result. 
Result so far: 15.0
If we take 255 away from 288, we end up with 33.
Append the next digit (1) from the dividend to 33 and continue with: 331 / 51

On to step 4:
The number 51 fits into 331 6 times, leaving a remainder of 25.
Use 6 as the next digit of our solution. 
Result so far: 156.0
Subtracting 306 from 331 leaves us with 25.
Include the next digit (6) from the dividend after 25, then repeat: 256 / 51

Advancing to step 5:
When dividing 256 by 51, we get 5 with a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 1565.0
Subtract 255 from 256 to get 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 51

On to step 6:
The number 51 fits into 12 0 times, leaving a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 15650.0
Deduct 0 from 12 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 7:
If we divide 120 by 51, we get 2 and a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 15650.2
Subtracting 102 from 120 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 8:
180 divided by 51 is 3 with a remainder of 27.
The next digit of our result is 3. 
Result so far: 15650.23
Deduct 153 from 180 and we're left 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 9:
51 goes into 270 5 times with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 15650.235
Subtracting 255 from 270 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 10:
If we divide 150 by 51, we get 2 and a remainder of 48.
The number 2 becomes the next digit in our result. 
Result so far: 15650.2352
If we take 102 away from 150, we end up 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 11:
When dividing 480 by 51, we get 9 with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 15650.23529
Subtracting 459 from 480 leaves us 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.

Step 12:
The number 51 fits into 210 4 times, leaving a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 15650.235294
Deduct 204 from 210 and we're left 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 13:
51 goes into 60 1 times with a remainder of 9.
The next digit of our result is 1. 
Result so far: 15650.2352941
If we take 51 away from 60, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 14:
When dividing 90 by 51, we get 1 with a remainder of 39.
The number 1 becomes the next digit in our result. 
Result so far: 15650.23529411
The remainder is 39 after subtracting 51 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

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