Let's divide 504891 by 23
The aim is to understand the frequency of 23 in 504891.

Step 1:
23 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 23

Going ahead to step 2:
When dividing 50 by 23, we get 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 46 from 50 and we're left with 4.
Append the next digit (4) from the dividend to 4 and continue with: 44 / 23

On to step 3:
44 divided by 23 is 1 with a remainder of 21.
Put 1 as the next digit of the answer. 
Result so far: 21.0
Subtracting 23 from 44 leaves us with 21.
Fetch the next digit (8) from the dividend, attach it to 21 and continue: 218 / 23

Going ahead to step 4:
When dividing 218 by 23, we get 9 with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 219.0
Subtract 207 from 218 to get 11.
Include the next digit (9) from the dividend after 11, then repeat: 119 / 23

Let's proceed to step 5:
23 can be fit into 119 5 times, resulting in a remainder of 4.
Record the quotient 5 as the next digit in the result. 
Result so far: 2195.0
Deduct 115 from 119 and we're left with 4.
Fetch the next digit (1) from the dividend, attach it to 4 and continue: 41 / 23

Let's proceed to step 6:
If we divide 41 by 23, we get 1 and a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 21951.0
Deduct 23 from 41 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 7:
23 goes into 180 7 times with a remainder of 19.
The number 7 becomes the next digit in our result. 
Result so far: 21951.7
The remainder is 19 after subtracting 161 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 8:
The number 23 fits into 190 8 times, leaving a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 21951.78
The remainder is 6 after subtracting 184 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 9:
23 can be fit into 60 2 times, resulting in a remainder of 14.
Write down 2 as next digit of the result. 
Result so far: 21951.782
Subtract 46 from 60 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 10:
140 divided by 23 is 6 with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 21951.7826
Deduct 138 from 140 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 11:
The number 23 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 21951.7826
Deduct 0 from 20 and we're left 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.

Let's proceed to step 12:
If we divide 200 by 23, we get 8 and a remainder of 16.
The next digit of our result is 8. 
Result so far: 21951.782608
The remainder is 16 after subtracting 184 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 13:
23 goes into 160 6 times with a remainder of 22.
The next digit of our result is 6. 
Result so far: 21951.7826086
Subtract 138 from 160 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 14:
23 goes into 220 9 times with a remainder of 13.
Write down 9 as next digit of the result. 
Result so far: 21951.78260869
Deduct 207 from 220 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 21951.78260869 with a remaining 1.3e-08.