We're dividing 584813 by 40 
We want to figure out the number of times 584813 can be divided by 40.

Going ahead to step 1:
40 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 40

On to step 2:
58 divided by 40 is 1 with a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 40 from 58 and we're left with 18.
Fetch the next digit (4) from the dividend, attach it to 18 and continue: 184 / 40

Going ahead to step 3:
40 goes into 184 4 times with a remainder of 24.
Record the quotient 4 as the next digit in the result. 
Result so far: 14.0
If we subtract 160 from 184, we get 24.
Take the next digit (8) from the dividend and append it to 24, then repeat: 248 / 40

On to step 4:
If we divide 248 by 40, we get 6 and a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 146.0
If we subtract 240 from 248, we get 8.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 40

Step 5:
The number 40 fits into 81 2 times, leaving a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 1462.0
Subtract 80 from 81 to get 1.
Fetch the next digit (3) from the dividend, attach it to 1 and continue: 13 / 40

Let's proceed to step 6:
40 goes into 13 0 times with a remainder of 13.
Put 0 as the next digit of the answer. 
Result so far: 14620.0
If we subtract 0 from 13, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 7:
When dividing 130 by 40, we get 3 with a remainder of 10.
Put 3 as the next digit of the answer. 
Result so far: 14620.3
If we subtract 120 from 130, 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.

Step 8:
40 can be fit into 100 2 times, resulting in a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 14620.32
If we take 80 away from 100, we end up 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.

Going ahead to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 14620.325
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.

Advancing to step 10:
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: 14620.325
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.

Let's proceed to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 14620.325
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.

In conclusion, the division gives 14620.325 with a balance of 0.0.