We're dividing 179558 by 40 
The aim is to understand the frequency of 40 in 179558.

Step 1:
1 divided by 40 is 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 40

Advancing to step 2:
17 divided by 40 is 0 with a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 17 to get 17.
Include the next digit (9) from the dividend after 17, then repeat: 179 / 40

Advancing to step 3:
If we divide 179 by 40, we get 4 and a remainder of 19.
Write down 4 as next digit of the result. 
Result so far: 4.0
If we take 160 away from 179, we end up with 19.
Bring next digit (5) of the dividend behind the 19 and repeat the process: 195 / 40

On to step 4:
40 goes into 195 4 times with a remainder of 35.
Write down 4 as next digit of the result. 
Result so far: 44.0
If we subtract 160 from 195, we get 35.
Append the next digit (5) from the dividend to 35 and continue with: 355 / 40

Step 5:
The number 40 fits into 355 8 times, leaving a remainder of 35.
The number 8 becomes the next digit in our result. 
Result so far: 448.0
If we take 320 away from 355, we end up with 35.
Bring next digit (8) of the dividend behind the 35 and repeat the process: 358 / 40

Going ahead to step 6:
When dividing 358 by 40, we get 8 with a remainder of 38.
The number 8 becomes the next digit in our result. 
Result so far: 4488.0
The remainder is 38 after subtracting 320 from 358.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 7:
380 divided by 40 is 9 with a remainder of 20.
Put 9 as the next digit of the answer. 
Result so far: 4488.9
Subtracting 360 from 380 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 4488.95
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 4488.95
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 4488.95
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 4488.95, and the remainder is 0.0.