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

Going ahead to step 1:
1 divided by 51 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 51

Step 2:
When dividing 16 by 51, we get 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 16, we end up with 16.
Bring next digit (4) of the dividend behind the 16 and repeat the process: 164 / 51

Let's proceed to step 3:
When dividing 164 by 51, we get 3 with a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 153 from 164, we get 11.
Include the next digit (3) from the dividend after 11, then repeat: 113 / 51

Step 4:
113 divided by 51 is 2 with a remainder of 11.
Write down 2 as next digit of the result. 
Result so far: 32.0
Subtracting 102 from 113 leaves us with 11.
Include the next digit (4) from the dividend after 11, then repeat: 114 / 51

Moving on to step 5:
51 goes into 114 2 times with a remainder of 12.
The number 2 becomes the next digit in our result. 
Result so far: 322.0
If we take 102 away from 114, we end up with 12.
Fetch the next digit (5) from the dividend, attach it to 12 and continue: 125 / 51

Going ahead to step 6:
51 goes into 125 2 times with a remainder of 23.
The next digit of our result is 2. 
Result so far: 3222.0
Deduct 102 from 125 and we're left 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.

Advancing to step 7:
230 divided by 51 is 4 with a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 3222.4
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.

On to step 8:
51 can be fit into 260 5 times, resulting in a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 3222.45
If we take 255 away from 260, we end up with 5.
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 9:
The number 51 fits into 50 0 times, leaving a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 3222.45
If we subtract 0 from 50, we get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Let's proceed to step 10:
51 goes into 500 9 times with a remainder of 41.
Write down 9 as next digit of the result. 
Result so far: 3222.4509
Subtracting 459 from 500 leaves us with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 11:
51 can be fit into 410 8 times, resulting in a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 3222.45098
Deduct 408 from 410 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 12:
20 divided by 51 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 3222.45098
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 13:
If we divide 200 by 51, we get 3 and a remainder of 47.
Record the quotient 3 as the next digit in the result. 
Result so far: 3222.4509803
Subtracting 153 from 200 leaves us with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Let's proceed to step 14:
The number 51 fits into 470 9 times, leaving a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 3222.45098039
If we take 459 away from 470, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

The final result is 3222.45098039 with a remainder of 1.1e-08.