155977 divided by 40 
The aim is to understand the frequency of 40 in 155977.

Let's proceed to step 1:
40 can be fit into 1 0 times, resulting in a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 40

Going ahead to step 2:
40 goes into 15 0 times with a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Take the next digit (5) from the dividend and append it to 15, then repeat: 155 / 40

Step 3:
When dividing 155 by 40, we get 3 with a remainder of 35.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 120 from 155, we get 35.
Append the next digit (9) from the dividend to 35 and continue with: 359 / 40

Advancing to step 4:
If we divide 359 by 40, we get 8 and a remainder of 39.
The number 8 becomes the next digit in our result. 
Result so far: 38.0
Deduct 320 from 359 and we're left with 39.
Grab the next digit (7) from the dividend, add it to 39, then carry on: 397 / 40

Going ahead to step 5:
If we divide 397 by 40, we get 9 and a remainder of 37.
The number 9 becomes the next digit in our result. 
Result so far: 389.0
Deduct 360 from 397 and we're left with 37.
Include the next digit (7) from the dividend after 37, then repeat: 377 / 40

Advancing to step 6:
The number 40 fits into 377 9 times, leaving a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 3899.0
Subtract 360 from 377 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 7:
40 goes into 170 4 times with a remainder of 10.
The next digit of our result is 4. 
Result so far: 3899.4
Subtracting 160 from 170 leaves us 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.

On to step 8:
40 can be fit into 100 2 times, resulting in a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 3899.42
Deduct 80 from 100 and we're left 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.

Let's proceed to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 3899.425
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.

Moving on to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 3899.425
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 3899.425
Subtracting 0 from 0 leaves us with 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 final result is 3899.425 with a remainder of 0.0.