102161 divided by 51 
The aim is to understand the frequency of 51 in 102161.

Advancing to step 1:
When dividing 1 by 51, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 51

Advancing to step 2:
51 goes into 10 0 times with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 10, we get 10.
Take the next digit (2) from the dividend and append it to 10, then repeat: 102 / 51

Advancing to step 3:
51 can be fit into 102 2 times, resulting in a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 102 from 102 and we're left with 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 51

Going ahead to step 4:
1 divided by 51 is 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
If we subtract 0 from 1, we get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 51

Moving on to step 5:
51 can be fit into 16 0 times, resulting in a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 200.0
If we subtract 0 from 16, we get 16.
Include the next digit (1) from the dividend after 16, then repeat: 161 / 51

Let's proceed to step 6:
161 divided by 51 is 3 with a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 2003.0
Deduct 153 from 161 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 7:
When dividing 80 by 51, we get 1 with a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 2003.1
Subtracting 51 from 80 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 8:
290 divided by 51 is 5 with a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 2003.15
Subtracting 255 from 290 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 9:
The number 51 fits into 350 6 times, leaving a remainder of 44.
Write down 6 as next digit of the result. 
Result so far: 2003.156
The remainder is 44 after subtracting 306 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Advancing to step 10:
440 divided by 51 is 8 with a remainder of 32.
Write down 8 as next digit of the result. 
Result so far: 2003.1568
Subtracting 408 from 440 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 11:
51 goes into 320 6 times with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 2003.15686
Subtracting 306 from 320 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 12:
51 goes into 140 2 times with a remainder of 38.
Put 2 as the next digit of the answer. 
Result so far: 2003.156862
If we subtract 102 from 140, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 13:
When dividing 380 by 51, we get 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 2003.1568627
Deduct 357 from 380 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.

On to step 14:
When dividing 230 by 51, we get 4 with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 2003.15686274
Deduct 204 from 230 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Our division results in 2003.15686274 with a remaining 2.6e-08.