509791 divided by 23 
The aim is to understand the frequency of 23 in 509791.

On to step 1:
23 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 23

Step 2:
23 goes into 50 2 times with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 46 from 50 and we're left with 4.
Fetch the next digit (9) from the dividend, attach it to 4 and continue: 49 / 23

Step 3:
23 goes into 49 2 times with a remainder of 3.
The next digit of our result is 2. 
Result so far: 22.0
Subtract 46 from 49 to get 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 23

Step 4:
If we divide 37 by 23, we get 1 and a remainder of 14.
The next digit of our result is 1. 
Result so far: 221.0
Subtract 23 from 37 to get 14.
Append the next digit (9) from the dividend to 14 and continue with: 149 / 23

Going ahead to step 5:
23 can be fit into 149 6 times, resulting in a remainder of 11.
Use 6 as the next digit of our solution. 
Result so far: 2216.0
Subtract 138 from 149 to get 11.
Include the next digit (1) from the dividend after 11, then repeat: 111 / 23

Step 6:
23 can be fit into 111 4 times, resulting in a remainder of 19.
Write down 4 as next digit of the result. 
Result so far: 22164.0
If we take 92 away from 111, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 7:
When dividing 190 by 23, we get 8 with a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 22164.8
Deduct 184 from 190 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 8:
If we divide 60 by 23, we get 2 and a remainder of 14.
Write down 2 as next digit of the result. 
Result so far: 22164.82
Subtracting 46 from 60 leaves us with 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 9:
23 goes into 140 6 times with a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 22164.826
The remainder is 2 after subtracting 138 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 10:
The number 23 fits into 20 0 times, leaving a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 22164.826
If we take 0 away from 20, 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.

Advancing to step 11:
The number 23 fits into 200 8 times, leaving a remainder of 16.
Put 8 as the next digit of the answer. 
Result so far: 22164.82608
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 12:
When dividing 160 by 23, we get 6 with a remainder of 22.
The number 6 becomes the next digit in our result. 
Result so far: 22164.826086
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.

Let's proceed to step 13:
When dividing 220 by 23, we get 9 with a remainder of 13.
The number 9 becomes the next digit in our result. 
Result so far: 22164.8260869
If we take 207 away from 220, we end up 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.

Step 14:
23 goes into 130 5 times with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 22164.82608695
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.

The quotient of the division is 22164.82608695, and the remainder is 1.5e-08.