We divide 578997 by 40
We want to figure out the number of times 578997 can be divided by 40.

Moving on to step 1:
5 divided by 40 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 40

Advancing to step 2:
When dividing 57 by 40, we get 1 with a remainder of 17.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 40 from 57 and we're left with 17.
Grab the next digit (8) from the dividend, add it to 17, then carry on: 178 / 40

Going ahead to step 3:
If we divide 178 by 40, we get 4 and a remainder of 18.
Use 4 as the next digit of our solution. 
Result so far: 14.0
If we subtract 160 from 178, we get 18.
Append the next digit (9) from the dividend to 18 and continue with: 189 / 40

Going ahead to step 4:
The number 40 fits into 189 4 times, leaving a remainder of 29.
Put 4 as the next digit of the answer. 
Result so far: 144.0
If we take 160 away from 189, we end up with 29.
Include the next digit (9) from the dividend after 29, then repeat: 299 / 40

On to step 5:
When dividing 299 by 40, we get 7 with a remainder of 19.
Record the quotient 7 as the next digit in the result. 
Result so far: 1447.0
If we take 280 away from 299, we end up with 19.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 40

On to step 6:
If we divide 197 by 40, we get 4 and a remainder of 37.
Use 4 as the next digit of our solution. 
Result so far: 14474.0
Subtracting 160 from 197 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Going ahead to step 7:
40 goes into 370 9 times with a remainder of 10.
Use 9 as the next digit of our solution. 
Result so far: 14474.9
Subtract 360 from 370 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.

Moving 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: 14474.92
The remainder is 20 after subtracting 80 from 100.
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.
Use 5 as the next digit of our solution. 
Result so far: 14474.925
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:
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: 14474.925
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.

Step 11:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14474.925
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.

Our division results in 14474.925 with a remaining 0.0.