Let's divide 578573 by 40
We're looking to find how many times 40 goes into 578573.

On to step 1:
40 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 40

Moving on to step 2:
57 divided by 40 is 1 with a remainder of 17.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 40 from 57 to get 17.
Bring next digit (8) of the dividend behind the 17 and repeat the process: 178 / 40

Step 3:
40 can be fit into 178 4 times, resulting in a remainder of 18.
Write down 4 as next digit of the result. 
Result so far: 14.0
Subtracting 160 from 178 leaves us with 18.
Bring next digit (5) of the dividend behind the 18 and repeat the process: 185 / 40

On to step 4:
185 divided by 40 is 4 with a remainder of 25.
Put 4 as the next digit of the answer. 
Result so far: 144.0
If we subtract 160 from 185, we get 25.
Fetch the next digit (7) from the dividend, attach it to 25 and continue: 257 / 40

Step 5:
The number 40 fits into 257 6 times, leaving a remainder of 17.
Record the quotient 6 as the next digit in the result. 
Result so far: 1446.0
If we subtract 240 from 257, we get 17.
Take the next digit (3) from the dividend and append it to 17, then repeat: 173 / 40

On to step 6:
173 divided by 40 is 4 with a remainder of 13.
The number 4 becomes the next digit in our result. 
Result so far: 14464.0
Deduct 160 from 173 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 7:
40 goes into 130 3 times with a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 14464.3
Subtract 120 from 130 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.

On to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 14464.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.

Moving on to step 9:
200 divided by 40 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 14464.325
Subtract 200 from 200 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.

On to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14464.325
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.

Going ahead to step 11:
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: 14464.325
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.

Our division results in 14464.325 with a remaining 0.0.