40873395 divided by 45 
The aim is to understand the frequency of 45 in 40873395.

On to step 1:
45 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 45

On to step 2:
The number 45 fits into 40 0 times, leaving a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Append the next digit (8) from the dividend to 40 and continue with: 408 / 45

Step 3:
45 can be fit into 408 9 times, resulting in a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Subtracting 405 from 408 leaves us with 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 45

On to step 4:
If we divide 37 by 45, we get 0 and a remainder of 37.
Record the quotient 0 as the next digit in the result. 
Result so far: 90.0
If we take 0 away from 37, we end up with 37.
Fetch the next digit (3) from the dividend, attach it to 37 and continue: 373 / 45

On to step 5:
The number 45 fits into 373 8 times, leaving a remainder of 13.
The next digit of our result is 8. 
Result so far: 908.0
Subtract 360 from 373 to get 13.
Append the next digit (3) from the dividend to 13 and continue with: 133 / 45

Advancing to step 6:
133 divided by 45 is 2 with a remainder of 43.
Write down 2 as next digit of the result. 
Result so far: 9082.0
Deduct 90 from 133 and we're left with 43.
Append the next digit (9) from the dividend to 43 and continue with: 439 / 45

Moving on to step 7:
439 divided by 45 is 9 with a remainder of 34.
The next digit of our result is 9. 
Result so far: 90829.0
Subtract 405 from 439 to get 34.
Append the next digit (5) from the dividend to 34 and continue with: 345 / 45

Going ahead to step 8:
The number 45 fits into 345 7 times, leaving a remainder of 30.
Put 7 as the next digit of the answer. 
Result so far: 908297.0
The remainder is 30 after subtracting 315 from 345.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 9:
If we divide 300 by 45, we get 6 and a remainder of 30.
The next digit of our result is 6. 
Result so far: 908297.6
Subtract 270 from 300 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 10:
When dividing 300 by 45, we get 6 with a remainder of 30.
Record the quotient 6 as the next digit in the result. 
Result so far: 908297.66
Subtract 270 from 300 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Our division results in 908297.66 with a remaining 0.03.