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

Going ahead to step 1:
5 divided by 165 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 165

Advancing to step 2:
The number 165 fits into 58 0 times, leaving a remainder of 58.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 58 to get 58.
Grab the next digit (5) from the dividend, add it to 58, then carry on: 585 / 165

Moving on to step 3:
585 divided by 165 is 3 with a remainder of 90.
Use 3 as the next digit of our solution. 
Result so far: 3.0
The remainder is 90 after subtracting 495 from 585.
Bring next digit (4) of the dividend behind the 90 and repeat the process: 904 / 165

On to step 4:
904 divided by 165 is 5 with a remainder of 79.
Record the quotient 5 as the next digit in the result. 
Result so far: 35.0
If we subtract 825 from 904, we get 79.
Fetch the next digit (8) from the dividend, attach it to 79 and continue: 798 / 165

Going ahead to step 5:
The number 165 fits into 798 4 times, leaving a remainder of 138.
Record the quotient 4 as the next digit in the result. 
Result so far: 354.0
If we subtract 660 from 798, we get 138.
Grab the next digit (1) from the dividend, add it to 138, then carry on: 1381 / 165

Moving on to step 6:
165 goes into 1381 8 times with a remainder of 61.
The number 8 becomes the next digit in our result. 
Result so far: 3548.0
Subtracting 1320 from 1381 leaves us with 61.
Bring next digit (7) of the dividend behind the 61 and repeat the process: 617 / 165

Going ahead to step 7:
When dividing 617 by 165, we get 3 with a remainder of 122.
Write down 3 as next digit of the result. 
Result so far: 35483.0
Subtract 495 from 617 to get 122.
Fetch the next digit (1) from the dividend, attach it to 122 and continue: 1221 / 165

Moving on to step 8:
When dividing 1221 by 165, we get 7 with a remainder of 66.
Put 7 as the next digit of the answer. 
Result so far: 354837.0
Subtracting 1155 from 1221 leaves us with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Step 9:
The number 165 fits into 660 4 times, leaving a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 354837.4
The remainder is 0 after subtracting 660 from 660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
The number 165 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 354837.4
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 11:
The number 165 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 354837.4
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 354837.4, with a leftover of 0.0.