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

Going ahead to step 1:
5 divided by 40 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 40

Advancing to step 2:
40 can be fit into 57 1 times, resulting in a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 40 from 57 to get 17.
Fetch the next digit (4) from the dividend, attach it to 17 and continue: 174 / 40

Let's proceed to step 3:
174 divided by 40 is 4 with a remainder of 14.
Write down 4 as next digit of the result. 
Result so far: 14.0
If we take 160 away from 174, we end up with 14.
Append the next digit (2) from the dividend to 14 and continue with: 142 / 40

Advancing to step 4:
If we divide 142 by 40, we get 3 and a remainder of 22.
Use 3 as the next digit of our solution. 
Result so far: 143.0
If we take 120 away from 142, we end up with 22.
Include the next digit (8) from the dividend after 22, then repeat: 228 / 40

Moving on to step 5:
228 divided by 40 is 5 with a remainder of 28.
Put 5 as the next digit of the answer. 
Result so far: 1435.0
If we subtract 200 from 228, we get 28.
Grab the next digit (9) from the dividend, add it to 28, then carry on: 289 / 40

Advancing to step 6:
289 divided by 40 is 7 with a remainder of 9.
Record the quotient 7 as the next digit in the result. 
Result so far: 14357.0
Subtracting 280 from 289 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 7:
90 divided by 40 is 2 with a remainder of 10.
Use 2 as the next digit of our solution. 
Result so far: 14357.2
If we subtract 80 from 90, 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.

Going ahead to step 8:
40 goes into 100 2 times with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 14357.22
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.

The quotient of the division is 14357.22, and the remainder is 0.02.