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

Step 1:
40 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (5) of the dividend behind the 3 and repeat the process: 35 / 40

Advancing to step 2:
35 divided by 40 is 0 with a remainder of 35.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 35 to get 35.
Grab the next digit (5) from the dividend, add it to 35, then carry on: 355 / 40

Advancing to step 3:
355 divided by 40 is 8 with a remainder of 35.
Use 8 as the next digit of our solution. 
Result so far: 8.0
If we subtract 320 from 355, we get 35.
Fetch the next digit (7) from the dividend, attach it to 35 and continue: 357 / 40

Let's proceed to step 4:
If we divide 357 by 40, we get 8 and a remainder of 37.
Record the quotient 8 as the next digit in the result. 
Result so far: 88.0
If we take 320 away from 357, we end up with 37.
Take the next digit (8) from the dividend and append it to 37, then repeat: 378 / 40

Moving on to step 5:
If we divide 378 by 40, we get 9 and a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 889.0
If we subtract 360 from 378, we get 18.
Bring next digit (9) of the dividend behind the 18 and repeat the process: 189 / 40

Going ahead to step 6:
40 goes into 189 4 times with a remainder of 29.
Write down 4 as next digit of the result. 
Result so far: 8894.0
If we take 160 away from 189, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 7:
The number 40 fits into 290 7 times, leaving a remainder of 10.
Use 7 as the next digit of our solution. 
Result so far: 8894.7
Subtract 280 from 290 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.

Going ahead to step 8:
40 can be fit into 100 2 times, resulting in a remainder of 20.
The next digit of our result is 2. 
Result so far: 8894.72
If we subtract 80 from 100, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 8894.725
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 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 8894.725
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 11:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 8894.725
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 final outcome is 8894.725, with a leftover of 0.0.