We look at the division of 5997821 by 503 
The aim is to understand the frequency of 503 in 5997821.

On to step 1:
503 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 503

Moving on to step 2:
When dividing 59 by 503, we get 0 with a remainder of 59.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 59, we get 59.
Include the next digit (9) from the dividend after 59, then repeat: 599 / 503

Let's proceed to step 3:
599 divided by 503 is 1 with a remainder of 96.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 503 from 599 and we're left with 96.
Grab the next digit (7) from the dividend, add it to 96, then carry on: 967 / 503

Step 4:
967 divided by 503 is 1 with a remainder of 464.
Write down 1 as next digit of the result. 
Result so far: 11.0
Subtract 503 from 967 to get 464.
Grab the next digit (8) from the dividend, add it to 464, then carry on: 4648 / 503

Let's proceed to step 5:
503 goes into 4648 9 times with a remainder of 121.
The number 9 becomes the next digit in our result. 
Result so far: 119.0
The remainder is 121 after subtracting 4527 from 4648.
Fetch the next digit (2) from the dividend, attach it to 121 and continue: 1212 / 503

On to step 6:
503 can be fit into 1212 2 times, resulting in a remainder of 206.
The next digit of our result is 2. 
Result so far: 1192.0
Subtracting 1006 from 1212 leaves us with 206.
Grab the next digit (1) from the dividend, add it to 206, then carry on: 2061 / 503

Let's proceed to step 7:
2061 divided by 503 is 4 with a remainder of 49.
The number 4 becomes the next digit in our result. 
Result so far: 11924.0
Deduct 2012 from 2061 and we're left with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

On to step 8:
If we divide 490 by 503, we get 0 and a remainder of 490.
Put 0 as the next digit of the answer. 
Result so far: 11924.0
If we take 0 away from 490, we end up with 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4900, and continue the process.

Moving on to step 9:
503 goes into 4900 9 times with a remainder of 373.
Record the quotient 9 as the next digit in the result. 
Result so far: 11924.09
Subtracting 4527 from 4900 leaves us with 373.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3730, and continue the process.

Let's proceed to step 10:
503 can be fit into 3730 7 times, resulting in a remainder of 209.
Put 7 as the next digit of the answer. 
Result so far: 11924.097
If we take 3521 away from 3730, we end up with 209.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2090, and continue the process.

Advancing to step 11:
When dividing 2090 by 503, we get 4 with a remainder of 78.
Use 4 as the next digit of our solution. 
Result so far: 11924.0974
If we subtract 2012 from 2090, we get 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Step 12:
780 divided by 503 is 1 with a remainder of 277.
Record the quotient 1 as the next digit in the result. 
Result so far: 11924.09741
If we take 503 away from 780, we end up with 277.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2770, and continue the process.

Advancing to step 13:
2770 divided by 503 is 5 with a remainder of 255.
Use 5 as the next digit of our solution. 
Result so far: 11924.097415
Subtracting 2515 from 2770 leaves us with 255.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2550, and continue the process.

Step 14:
503 goes into 2550 5 times with a remainder of 35.
Record the quotient 5 as the next digit in the result. 
Result so far: 11924.0974155
Subtract 2515 from 2550 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The final result is 11924.0974155 with a remainder of 3.5e-07.