We're dividing 18879534 by 501 
The aim is to understand the frequency of 501 in 18879534.

On to step 1:
The number 501 fits into 1 0 times, leaving a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 501

Advancing to step 2:
501 goes into 18 0 times with a remainder of 18.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 18 after subtracting 0 from 18.
Take the next digit (8) from the dividend and append it to 18, then repeat: 188 / 501

Step 3:
501 goes into 188 0 times with a remainder of 188.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 188 and we're left with 188.
Grab the next digit (7) from the dividend, add it to 188, then carry on: 1887 / 501

Step 4:
When dividing 1887 by 501, we get 3 with a remainder of 384.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtracting 1503 from 1887 leaves us with 384.
Bring next digit (9) of the dividend behind the 384 and repeat the process: 3849 / 501

Going ahead to step 5:
If we divide 3849 by 501, we get 7 and a remainder of 342.
The next digit of our result is 7. 
Result so far: 37.0
Subtracting 3507 from 3849 leaves us with 342.
Append the next digit (5) from the dividend to 342 and continue with: 3425 / 501

Going ahead to step 6:
If we divide 3425 by 501, we get 6 and a remainder of 419.
Write down 6 as next digit of the result. 
Result so far: 376.0
If we take 3006 away from 3425, we end up with 419.
Grab the next digit (3) from the dividend, add it to 419, then carry on: 4193 / 501

Step 7:
501 can be fit into 4193 8 times, resulting in a remainder of 185.
Write down 8 as next digit of the result. 
Result so far: 3768.0
The remainder is 185 after subtracting 4008 from 4193.
Fetch the next digit (4) from the dividend, attach it to 185 and continue: 1854 / 501

Advancing to step 8:
501 goes into 1854 3 times with a remainder of 351.
Put 3 as the next digit of the answer. 
Result so far: 37683.0
Subtract 1503 from 1854 to get 351.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3510, and continue the process.

On to step 9:
The number 501 fits into 3510 7 times, leaving a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 37683.7
Subtracting 3507 from 3510 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 10:
The number 501 fits into 30 0 times, leaving a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 37683.7
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 11:
When dividing 300 by 501, we get 0 with a remainder of 300.
Put 0 as the next digit of the answer. 
Result so far: 37683.7
Subtract 0 from 300 to get 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

The quotient of the division is 37683.7, and the remainder is 0.03.