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

On 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
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

Going ahead to step 2:
16 divided by 51 is 0 with a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Include the next digit (1) from the dividend after 16, then repeat: 161 / 51

Going ahead to step 3:
When dividing 161 by 51, we get 3 with a remainder of 8.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 153 from 161 and we're left with 8.
Fetch the next digit (8) from the dividend, attach it to 8 and continue: 88 / 51

Going ahead to step 4:
88 divided by 51 is 1 with a remainder of 37.
The next digit of our result is 1. 
Result so far: 31.0
The remainder is 37 after subtracting 51 from 88.
Take the next digit (6) from the dividend and append it to 37, then repeat: 376 / 51

Going ahead to step 5:
When dividing 376 by 51, we get 7 with a remainder of 19.
The number 7 becomes the next digit in our result. 
Result so far: 317.0
Deduct 357 from 376 and we're left with 19.
Bring next digit (0) of the dividend behind the 19 and repeat the process: 190 / 51

Moving on to step 6:
When dividing 190 by 51, we get 3 with a remainder of 37.
The number 3 becomes the next digit in our result. 
Result so far: 3173.0
If we take 153 away from 190, we end up with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Step 7:
370 divided by 51 is 7 with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 3173.7
Subtract 357 from 370 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

On to step 8:
51 can be fit into 130 2 times, resulting in a remainder of 28.
The next digit of our result is 2. 
Result so far: 3173.72
Subtract 102 from 130 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 9:
51 can be fit into 280 5 times, resulting in a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 3173.725
The remainder is 25 after subtracting 255 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 10:
51 goes into 250 4 times with a remainder of 46.
The number 4 becomes the next digit in our result. 
Result so far: 3173.7254
Subtracting 204 from 250 leaves us with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Step 11:
51 goes into 460 9 times with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 3173.72549
The remainder is 1 after subtracting 459 from 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 12:
10 divided by 51 is 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 3173.72549
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 13:
51 can be fit into 100 1 times, resulting in a remainder of 49.
Use 1 as the next digit of our solution. 
Result so far: 3173.7254901
If we take 51 away from 100, we end up with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Advancing to step 14:
490 divided by 51 is 9 with a remainder of 31.
The next digit of our result is 9. 
Result so far: 3173.72549019
Deduct 459 from 490 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

The quotient of the division is 3173.72549019, and the remainder is 3.1e-08.