We divide 594884 by 40
Let's see how many times 40 fits into 594884.

Let's proceed to step 1:
40 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 40

Going ahead to step 2:
40 goes into 59 1 times with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 40 away from 59, we end up with 19.
Take the next digit (4) from the dividend and append it to 19, then repeat: 194 / 40

Step 3:
40 goes into 194 4 times with a remainder of 34.
Write down 4 as next digit of the result. 
Result so far: 14.0
The remainder is 34 after subtracting 160 from 194.
Include the next digit (8) from the dividend after 34, then repeat: 348 / 40

Advancing to step 4:
When dividing 348 by 40, we get 8 with a remainder of 28.
Write down 8 as next digit of the result. 
Result so far: 148.0
The remainder is 28 after subtracting 320 from 348.
Append the next digit (8) from the dividend to 28 and continue with: 288 / 40

On to step 5:
The number 40 fits into 288 7 times, leaving a remainder of 8.
Use 7 as the next digit of our solution. 
Result so far: 1487.0
The remainder is 8 after subtracting 280 from 288.
Include the next digit (4) from the dividend after 8, then repeat: 84 / 40

On to step 6:
84 divided by 40 is 2 with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 14872.0
The remainder is 4 after subtracting 80 from 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
When dividing 40 by 40, we get 1 with a remainder of 0.
The next digit of our result is 1. 
Result so far: 14872.1
If we take 40 away from 40, 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.

Step 8:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 14872.1
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 9:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14872.1
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.

The quotient of the division is 14872.1, and the remainder is 0.0.