We're dividing 400675 by 45 
The aim is to understand the frequency of 45 in 400675.

Let's proceed to step 1:
If we divide 4 by 45, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 45

Going ahead to step 2:
45 goes into 40 0 times with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Take the next digit (0) from the dividend and append it to 40, then repeat: 400 / 45

On to step 3:
45 can be fit into 400 8 times, resulting in a remainder of 40.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Subtracting 360 from 400 leaves us with 40.
Include the next digit (6) from the dividend after 40, then repeat: 406 / 45

Advancing to step 4:
The number 45 fits into 406 9 times, leaving a remainder of 1.
The next digit of our result is 9. 
Result so far: 89.0
If we take 405 away from 406, we end up with 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 45

On to step 5:
45 goes into 17 0 times with a remainder of 17.
Use 0 as the next digit of our solution. 
Result so far: 890.0
Subtract 0 from 17 to get 17.
Take the next digit (5) from the dividend and append it to 17, then repeat: 175 / 45

On to step 6:
When dividing 175 by 45, we get 3 with a remainder of 40.
The number 3 becomes the next digit in our result. 
Result so far: 8903.0
Subtracting 135 from 175 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 7:
When dividing 400 by 45, we get 8 with a remainder of 40.
Use 8 as the next digit of our solution. 
Result so far: 8903.8
If we take 360 away from 400, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 8:
45 goes into 400 8 times with a remainder of 40.
Put 8 as the next digit of the answer. 
Result so far: 8903.88
If we subtract 360 from 400, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Our division results in 8903.88 with a remaining 0.04.