Let's divide 371542 by 45
The aim is to understand the frequency of 45 in 371542.

On to step 1:
45 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 45

Going ahead to step 2:
45 can be fit into 37 0 times, resulting in a remainder of 37.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 37 to get 37.
Grab the next digit (1) from the dividend, add it to 37, then carry on: 371 / 45

Let's proceed to step 3:
The number 45 fits into 371 8 times, leaving a remainder of 11.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Subtracting 360 from 371 leaves us with 11.
Bring next digit (5) of the dividend behind the 11 and repeat the process: 115 / 45

Going ahead to step 4:
If we divide 115 by 45, we get 2 and a remainder of 25.
Write down 2 as next digit of the result. 
Result so far: 82.0
Subtract 90 from 115 to get 25.
Take the next digit (4) from the dividend and append it to 25, then repeat: 254 / 45

Moving on to step 5:
45 can be fit into 254 5 times, resulting in a remainder of 29.
The number 5 becomes the next digit in our result. 
Result so far: 825.0
Subtracting 225 from 254 leaves us with 29.
Bring next digit (2) of the dividend behind the 29 and repeat the process: 292 / 45

Step 6:
The number 45 fits into 292 6 times, leaving a remainder of 22.
Put 6 as the next digit of the answer. 
Result so far: 8256.0
Subtract 270 from 292 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 7:
If we divide 220 by 45, we get 4 and a remainder of 40.
Put 4 as the next digit of the answer. 
Result so far: 8256.4
Subtracting 180 from 220 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.

On to step 8:
If we divide 400 by 45, we get 8 and a remainder of 40.
The number 8 becomes the next digit in our result. 
Result so far: 8256.48
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.

On to step 9:
45 can be fit into 400 8 times, resulting in a remainder of 40.
Put 8 as the next digit of the answer. 
Result so far: 8256.488
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.

Our division results in 8256.488 with a remaining 0.004.