We're dividing 40503617 by 505 
The aim is to understand the frequency of 505 in 40503617.

Step 1:
If we divide 4 by 505, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 505

Going ahead to step 2:
40 divided by 505 is 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Take the next digit (5) from the dividend and append it to 40, then repeat: 405 / 505

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

Step 4:
505 can be fit into 4050 8 times, resulting in a remainder of 10.
The next digit of our result is 8. 
Result so far: 8.0
Deduct 4040 from 4050 and we're left with 10.
Take the next digit (3) from the dividend and append it to 10, then repeat: 103 / 505

Advancing to step 5:
505 goes into 103 0 times with a remainder of 103.
Record the quotient 0 as the next digit in the result. 
Result so far: 80.0
The remainder is 103 after subtracting 0 from 103.
Append the next digit (6) from the dividend to 103 and continue with: 1036 / 505

Step 6:
If we divide 1036 by 505, we get 2 and a remainder of 26.
The next digit of our result is 2. 
Result so far: 802.0
Subtract 1010 from 1036 to get 26.
Append the next digit (1) from the dividend to 26 and continue with: 261 / 505

Step 7:
261 divided by 505 is 0 with a remainder of 261.
Put 0 as the next digit of the answer. 
Result so far: 8020.0
The remainder is 261 after subtracting 0 from 261.
Take the next digit (7) from the dividend and append it to 261, then repeat: 2617 / 505

On to step 8:
When dividing 2617 by 505, we get 5 with a remainder of 92.
Write down 5 as next digit of the result. 
Result so far: 80205.0
If we take 2525 away from 2617, we end up with 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Advancing to step 9:
505 can be fit into 920 1 times, resulting in a remainder of 415.
Put 1 as the next digit of the answer. 
Result so far: 80205.1
Subtract 505 from 920 to get 415.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4150, and continue the process.

Advancing to step 10:
505 can be fit into 4150 8 times, resulting in a remainder of 110.
Use 8 as the next digit of our solution. 
Result so far: 80205.18
Deduct 4040 from 4150 and we're left with 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Let's proceed to step 11:
If we divide 1100 by 505, we get 2 and a remainder of 90.
Use 2 as the next digit of our solution. 
Result so far: 80205.182
Subtracting 1010 from 1100 leaves us with 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Advancing to step 12:
505 can be fit into 900 1 times, resulting in a remainder of 395.
Write down 1 as next digit of the result. 
Result so far: 80205.1821
Subtract 505 from 900 to get 395.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3950, and continue the process.

Advancing to step 13:
505 can be fit into 3950 7 times, resulting in a remainder of 415.
The number 7 becomes the next digit in our result. 
Result so far: 80205.18217
If we take 3535 away from 3950, we end up with 415.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4150, and continue the process.

Let's proceed to step 14:
The number 505 fits into 4150 8 times, leaving a remainder of 110.
Use 8 as the next digit of our solution. 
Result so far: 80205.182178
Subtract 4040 from 4150 to get 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Moving on to step 15:
If we divide 1100 by 505, we get 2 and a remainder of 90.
Use 2 as the next digit of our solution. 
Result so far: 80205.1821782
Subtract 1010 from 1100 to get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Going ahead to step 16:
The number 505 fits into 900 1 times, leaving a remainder of 395.
Write down 1 as next digit of the result. 
Result so far: 80205.18217821
If we take 505 away from 900, we end up with 395.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3950, and continue the process.

After the division, we end up with 80205.18217821 and a remainder of 3.95e-07.