We're dividing 506795 by 21 
The aim is to understand the frequency of 21 in 506795.

Advancing to step 1:
When dividing 5 by 21, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 21

Advancing to step 2:
21 can be fit into 50 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 42 from 50 leaves us with 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 21

Let's proceed to step 3:
If we divide 86 by 21, we get 4 and a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 24.0
The remainder is 2 after subtracting 84 from 86.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 21

On to step 4:
21 goes into 27 1 times with a remainder of 6.
The next digit of our result is 1. 
Result so far: 241.0
The remainder is 6 after subtracting 21 from 27.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 21

Going ahead to step 5:
If we divide 69 by 21, we get 3 and a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 2413.0
Deduct 63 from 69 and we're left with 6.
Include the next digit (5) from the dividend after 6, then repeat: 65 / 21

Going ahead to step 6:
21 can be fit into 65 3 times, resulting in a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 24133.0
Deduct 63 from 65 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.

Advancing to step 7:
If we divide 20 by 21, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 24133.0
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 8:
When dividing 200 by 21, we get 9 with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 24133.09
If we subtract 189 from 200, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 9:
When dividing 110 by 21, we get 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 24133.095
Subtract 105 from 110 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 10:
21 can be fit into 50 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 24133.0952
Deduct 42 from 50 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 11:
The number 21 fits into 80 3 times, leaving a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 24133.09523
Subtracting 63 from 80 leaves us 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.

Let's proceed to step 12:
21 can be fit into 170 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 24133.095238
The remainder is 2 after subtracting 168 from 170.
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 13:
If we divide 20 by 21, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 24133.095238
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 14:
When dividing 200 by 21, we get 9 with a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 24133.09523809
Deduct 189 from 200 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

In conclusion, the division gives 24133.09523809 with a balance of 1.1e-08.