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

On to step 1:
If we divide 1 by 45, we get 0 and a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 45

Going ahead to step 2:
If we divide 16 by 45, we get 0 and a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 16 to get 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 45

Advancing to step 3:
When dividing 164 by 45, we get 3 with a remainder of 29.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
The remainder is 29 after subtracting 135 from 164.
Take the next digit (1) from the dividend and append it to 29, then repeat: 291 / 45

Advancing to step 4:
If we divide 291 by 45, we get 6 and a remainder of 21.
The next digit of our result is 6. 
Result so far: 36.0
Subtracting 270 from 291 leaves us with 21.
Fetch the next digit (9) from the dividend, attach it to 21 and continue: 219 / 45

Advancing to step 5:
The number 45 fits into 219 4 times, leaving a remainder of 39.
Put 4 as the next digit of the answer. 
Result so far: 364.0
Subtracting 180 from 219 leaves us with 39.
Take the next digit (7) from the dividend and append it to 39, then repeat: 397 / 45

On to step 6:
45 goes into 397 8 times with a remainder of 37.
Use 8 as the next digit of our solution. 
Result so far: 3648.0
Subtracting 360 from 397 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 7:
370 divided by 45 is 8 with a remainder of 10.
The number 8 becomes the next digit in our result. 
Result so far: 3648.8
Subtract 360 from 370 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
45 can be fit into 100 2 times, resulting in a remainder of 10.
The next digit of our result is 2. 
Result so far: 3648.82
If we take 90 away from 100, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 9:
45 can be fit into 100 2 times, resulting in a remainder of 10.
The number 2 becomes the next digit in our result. 
Result so far: 3648.822
If we subtract 90 from 100, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final result is 3648.822 with a remainder of 0.001.