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

Advancing to step 1:
5 divided by 40 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 40

Going ahead to step 2:
58 divided by 40 is 1 with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 40 from 58 leaves us with 18.
Grab the next digit (5) from the dividend, add it to 18, then carry on: 185 / 40

On to step 3:
The number 40 fits into 185 4 times, leaving a remainder of 25.
Write down 4 as next digit of the result. 
Result so far: 14.0
The remainder is 25 after subtracting 160 from 185.
Append the next digit (2) from the dividend to 25 and continue with: 252 / 40

Going ahead to step 4:
40 goes into 252 6 times with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 146.0
Subtracting 240 from 252 leaves us with 12.
Grab the next digit (7) from the dividend, add it to 12, then carry on: 127 / 40

Going ahead to step 5:
40 can be fit into 127 3 times, resulting in a remainder of 7.
The next digit of our result is 3. 
Result so far: 1463.0
If we subtract 120 from 127, we get 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 40

Going ahead to step 6:
79 divided by 40 is 1 with a remainder of 39.
Use 1 as the next digit of our solution. 
Result so far: 14631.0
Subtracting 40 from 79 leaves us with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Advancing to step 7:
40 can be fit into 390 9 times, resulting in a remainder of 30.
Write down 9 as next digit of the result. 
Result so far: 14631.9
If we take 360 away from 390, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 8:
300 divided by 40 is 7 with a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 14631.97
The remainder is 20 after subtracting 280 from 300.
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:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 14631.975
Subtracting 200 from 200 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.

Let's proceed to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 14631.975
If we subtract 0 from 0, we 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.

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: 14631.975
Deduct 0 from 0 and we're left 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 outcome is 14631.975, with a leftover of 0.0.