We look at the division of 502845 by 28 
The aim is to understand the frequency of 28 in 502845.

Going ahead to step 1:
5 divided by 28 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 28

Moving on to step 2:
The number 28 fits into 50 1 times, leaving a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 28 away from 50, we end up with 22.
Take the next digit (2) from the dividend and append it to 22, then repeat: 222 / 28

Step 3:
When dividing 222 by 28, we get 7 with a remainder of 26.
Write down 7 as next digit of the result. 
Result so far: 17.0
Deduct 196 from 222 and we're left with 26.
Grab the next digit (8) from the dividend, add it to 26, then carry on: 268 / 28

Moving on to step 4:
28 can be fit into 268 9 times, resulting in a remainder of 16.
Use 9 as the next digit of our solution. 
Result so far: 179.0
Subtracting 252 from 268 leaves us with 16.
Fetch the next digit (4) from the dividend, attach it to 16 and continue: 164 / 28

Going ahead to step 5:
The number 28 fits into 164 5 times, leaving a remainder of 24.
Use 5 as the next digit of our solution. 
Result so far: 1795.0
The remainder is 24 after subtracting 140 from 164.
Include the next digit (5) from the dividend after 24, then repeat: 245 / 28

On to step 6:
245 divided by 28 is 8 with a remainder of 21.
Use 8 as the next digit of our solution. 
Result so far: 17958.0
The remainder is 21 after subtracting 224 from 245.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 7:
28 can be fit into 210 7 times, resulting in a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 17958.7
The remainder is 14 after subtracting 196 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 8:
28 can be fit into 140 5 times, resulting in a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 17958.75
Deduct 140 from 140 and we're left 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.

Advancing to step 9:
When dividing 0 by 28, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 17958.75
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 10:
28 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 17958.75
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 quotient of the division is 17958.75, and the remainder is 0.0.