We're dividing 163785 by 51 
The aim is to understand the frequency of 51 in 163785.

On to step 1:
51 goes into 1 0 times with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 51

Step 2:
51 goes into 16 0 times with a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 16 after subtracting 0 from 16.
Take the next digit (3) from the dividend and append it to 16, then repeat: 163 / 51

Going ahead to step 3:
51 goes into 163 3 times with a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 3.0
The remainder is 10 after subtracting 153 from 163.
Bring next digit (7) of the dividend behind the 10 and repeat the process: 107 / 51

Let's proceed to step 4:
107 divided by 51 is 2 with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 32.0
Subtracting 102 from 107 leaves us with 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 51

On to step 5:
When dividing 58 by 51, we get 1 with a remainder of 7.
The number 1 becomes the next digit in our result. 
Result so far: 321.0
If we subtract 51 from 58, we get 7.
Append the next digit (5) from the dividend to 7 and continue with: 75 / 51

Moving on to step 6:
When dividing 75 by 51, we get 1 with a remainder of 24.
Write down 1 as next digit of the result. 
Result so far: 3211.0
If we subtract 51 from 75, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 7:
When dividing 240 by 51, we get 4 with a remainder of 36.
Write down 4 as next digit of the result. 
Result so far: 3211.4
If we take 204 away from 240, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 8:
51 can be fit into 360 7 times, resulting in a remainder of 3.
The next digit of our result is 7. 
Result so far: 3211.47
If we take 357 away from 360, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 9:
51 can be fit into 30 0 times, resulting in a remainder of 30.
The next digit of our result is 0. 
Result so far: 3211.47
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 10:
51 can be fit into 300 5 times, resulting in a remainder of 45.
The number 5 becomes the next digit in our result. 
Result so far: 3211.4705
The remainder is 45 after subtracting 255 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Moving on to step 11:
The number 51 fits into 450 8 times, leaving a remainder of 42.
Record the quotient 8 as the next digit in the result. 
Result so far: 3211.47058
Subtract 408 from 450 to get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

On to step 12:
51 goes into 420 8 times with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 3211.470588
Deduct 408 from 420 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.

After the division, we end up with 3211.470588 and a remainder of 1.2e-06.