We look at the division of 165298 by 23 
The aim is to understand the frequency of 23 in 165298.

Moving on to step 1:
If we divide 1 by 23, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 23

Advancing to step 2:
16 divided by 23 is 0 with a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 16, we get 16.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 23

On to step 3:
If we divide 165 by 23, we get 7 and a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Subtract 161 from 165 to get 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 23

Moving on to step 4:
If we divide 42 by 23, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 71.0
If we take 23 away from 42, we end up with 19.
Append the next digit (9) from the dividend to 19 and continue with: 199 / 23

Moving on to step 5:
23 can be fit into 199 8 times, resulting in a remainder of 15.
Record the quotient 8 as the next digit in the result. 
Result so far: 718.0
Deduct 184 from 199 and we're left with 15.
Bring next digit (8) of the dividend behind the 15 and repeat the process: 158 / 23

Going ahead to step 6:
23 can be fit into 158 6 times, resulting in a remainder of 20.
The number 6 becomes the next digit in our result. 
Result so far: 7186.0
If we take 138 away from 158, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 7:
23 can be fit into 200 8 times, resulting in a remainder of 16.
The next digit of our result is 8. 
Result so far: 7186.8
If we take 184 away from 200, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 8:
When dividing 160 by 23, we get 6 with a remainder of 22.
Write down 6 as next digit of the result. 
Result so far: 7186.86
Subtracting 138 from 160 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 9:
If we divide 220 by 23, we get 9 and a remainder of 13.
Write down 9 as next digit of the result. 
Result so far: 7186.869
The remainder is 13 after subtracting 207 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 10:
130 divided by 23 is 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 7186.8695
Subtracting 115 from 130 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 11:
The number 23 fits into 150 6 times, leaving a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 7186.86956
Deduct 138 from 150 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.

Let's proceed to step 12:
23 can be fit into 120 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 7186.869565
Subtracting 115 from 120 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 13:
The number 23 fits into 50 2 times, leaving a remainder of 4.
The next digit of our result is 2. 
Result so far: 7186.8695652
Subtracting 46 from 50 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 14:
The number 23 fits into 40 1 times, leaving a remainder of 17.
The next digit of our result is 1. 
Result so far: 7186.86956521
If we take 23 away from 40, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Our division results in 7186.86956521 with a remaining 1.7e-08.