We're dividing 50012511 by 165 
The aim is to understand the frequency of 165 in 50012511.

Step 1:
If we divide 5 by 165, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 165

Going ahead to step 2:
165 can be fit into 50 0 times, resulting in a remainder of 50.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Bring next digit (0) of the dividend behind the 50 and repeat the process: 500 / 165

Advancing to step 3:
165 goes into 500 3 times with a remainder of 5.
Write down 3 as next digit of the result. 
Result so far: 3.0
The remainder is 5 after subtracting 495 from 500.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 165

Step 4:
165 goes into 51 0 times with a remainder of 51.
Write down 0 as next digit of the result. 
Result so far: 30.0
Subtracting 0 from 51 leaves us with 51.
Bring next digit (2) of the dividend behind the 51 and repeat the process: 512 / 165

Step 5:
If we divide 512 by 165, we get 3 and a remainder of 17.
The next digit of our result is 3. 
Result so far: 303.0
If we subtract 495 from 512, we get 17.
Include the next digit (5) from the dividend after 17, then repeat: 175 / 165

Going ahead to step 6:
165 goes into 175 1 times with a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 3031.0
Deduct 165 from 175 and we're left with 10.
Fetch the next digit (1) from the dividend, attach it to 10 and continue: 101 / 165

Advancing to step 7:
The number 165 fits into 101 0 times, leaving a remainder of 101.
Put 0 as the next digit of the answer. 
Result so far: 30310.0
Subtracting 0 from 101 leaves us with 101.
Append the next digit (1) from the dividend to 101 and continue with: 1011 / 165

Let's proceed to step 8:
If we divide 1011 by 165, we get 6 and a remainder of 21.
The number 6 becomes the next digit in our result. 
Result so far: 303106.0
Subtracting 990 from 1011 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 9:
If we divide 210 by 165, we get 1 and a remainder of 45.
Write down 1 as next digit of the result. 
Result so far: 303106.1
Subtract 165 from 210 to get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

On to step 10:
The number 165 fits into 450 2 times, leaving a remainder of 120.
Record the quotient 2 as the next digit in the result. 
Result so far: 303106.12
If we subtract 330 from 450, we get 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Moving on to step 11:
If we divide 1200 by 165, we get 7 and a remainder of 45.
The number 7 becomes the next digit in our result. 
Result so far: 303106.127
Subtracting 1155 from 1200 leaves us with 45.
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 12:
450 divided by 165 is 2 with a remainder of 120.
Put 2 as the next digit of the answer. 
Result so far: 303106.1272
Deduct 330 from 450 and we're left with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

On to step 13:
If we divide 1200 by 165, we get 7 and a remainder of 45.
Put 7 as the next digit of the answer. 
Result so far: 303106.12727
The remainder is 45 after subtracting 1155 from 1200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

On to step 14:
165 goes into 450 2 times with a remainder of 120.
Put 2 as the next digit of the answer. 
Result so far: 303106.127272
If we take 330 away from 450, we end up with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Advancing to step 15:
The number 165 fits into 1200 7 times, leaving a remainder of 45.
Write down 7 as next digit of the result. 
Result so far: 303106.1272727
If we subtract 1155 from 1200, we get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Let's proceed to step 16:
When dividing 450 by 165, we get 2 with a remainder of 120.
The next digit of our result is 2. 
Result so far: 303106.12727272
Subtracting 330 from 450 leaves us with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

The quotient of the division is 303106.12727272, and the remainder is 1.2e-07.