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

Going ahead to step 1:
51 can be fit into 1 0 times, resulting in a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 51

On to step 2:
51 goes into 16 0 times with a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 16 and we're left with 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 51

Moving on to step 3:
The number 51 fits into 164 3 times, leaving a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Subtract 153 from 164 to get 11.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 51

Let's proceed to step 4:
When dividing 117 by 51, we get 2 with a remainder of 15.
Use 2 as the next digit of our solution. 
Result so far: 32.0
Subtracting 102 from 117 leaves us with 15.
Grab the next digit (9) from the dividend, add it to 15, then carry on: 159 / 51

Going ahead to step 5:
51 goes into 159 3 times with a remainder of 6.
The next digit of our result is 3. 
Result so far: 323.0
Subtracting 153 from 159 leaves us with 6.
Bring next digit (3) of the dividend behind the 6 and repeat the process: 63 / 51

Going ahead to step 6:
51 goes into 63 1 times with a remainder of 12.
Use 1 as the next digit of our solution. 
Result so far: 3231.0
Subtracting 51 from 63 leaves us 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.

Advancing to step 7:
51 can be fit into 120 2 times, resulting in a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 3231.2
Deduct 102 from 120 and we're left 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.

Moving on to step 8:
51 can be fit into 180 3 times, resulting in a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 3231.23
If we subtract 153 from 180, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 9:
When dividing 270 by 51, we get 5 with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 3231.235
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.

Advancing to step 10:
51 goes into 150 2 times with a remainder of 48.
Record the quotient 2 as the next digit in the result. 
Result so far: 3231.2352
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.

Going ahead to step 11:
If we divide 480 by 51, we get 9 and a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 3231.23529
If we subtract 459 from 480, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 12:
51 goes into 210 4 times with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 3231.235294
If we subtract 204 from 210, we get 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:
When dividing 60 by 51, we get 1 with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 3231.2352941
Subtract 51 from 60 to 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.

Advancing to step 14:
When dividing 90 by 51, we get 1 with a remainder of 39.
Put 1 as the next digit of the answer. 
Result so far: 3231.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.

The final outcome is 3231.23529411, with a leftover of 3.9e-08.