571289 divided by 40 
Let's see how many times 40 fits into 571289.

On to step 1:
40 goes into 5 0 times 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.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 40

Moving on to step 2:
If we divide 57 by 40, we get 1 and a remainder of 17.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 17 after subtracting 40 from 57.
Include the next digit (1) from the dividend after 17, then repeat: 171 / 40

Moving on to step 3:
When dividing 171 by 40, we get 4 with a remainder of 11.
The next digit of our result is 4. 
Result so far: 14.0
If we take 160 away from 171, we end up with 11.
Append the next digit (2) from the dividend to 11 and continue with: 112 / 40

On to step 4:
112 divided by 40 is 2 with a remainder of 32.
Record the quotient 2 as the next digit in the result. 
Result so far: 142.0
If we take 80 away from 112, we end up with 32.
Take the next digit (8) from the dividend and append it to 32, then repeat: 328 / 40

Let's proceed to step 5:
40 can be fit into 328 8 times, resulting in a remainder of 8.
The next digit of our result is 8. 
Result so far: 1428.0
Subtracting 320 from 328 leaves us with 8.
Grab the next digit (9) from the dividend, add it to 8, then carry on: 89 / 40

Let's proceed to step 6:
If we divide 89 by 40, we get 2 and a remainder of 9.
The next digit of our result is 2. 
Result so far: 14282.0
If we take 80 away from 89, we end up 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.

Advancing to step 7:
If we divide 90 by 40, we get 2 and a remainder of 10.
The next digit of our result is 2. 
Result so far: 14282.2
The remainder is 10 after subtracting 80 from 90.
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.
Put 2 as the next digit of the answer. 
Result so far: 14282.22
Deduct 80 from 100 and we're left 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.

The final outcome is 14282.22, with a leftover of 0.02.