574008 divided by 31 
We're looking to find how many times 31 goes into 574008.

Going ahead to step 1:
31 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
Deduct 0 from 5 and we're left with 5.
Append the next digit (7) from the dividend to 5 and continue with: 57 / 31

On to step 2:
31 can be fit into 57 1 times, resulting in a remainder of 26.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 26 after subtracting 31 from 57.
Include the next digit (4) from the dividend after 26, then repeat: 264 / 31

Advancing to step 3:
The number 31 fits into 264 8 times, leaving a remainder of 16.
Put 8 as the next digit of the answer. 
Result so far: 18.0
Subtract 248 from 264 to get 16.
Take the next digit (0) from the dividend and append it to 16, then repeat: 160 / 31

Moving on to step 4:
When dividing 160 by 31, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 185.0
If we subtract 155 from 160, we get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 31

Let's proceed to step 5:
If we divide 50 by 31, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1851.0
Subtract 31 from 50 to get 19.
Append the next digit (8) from the dividend to 19 and continue with: 198 / 31

On to step 6:
31 can be fit into 198 6 times, resulting in a remainder of 12.
The next digit of our result is 6. 
Result so far: 18516.0
The remainder is 12 after subtracting 186 from 198.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 7:
31 goes into 120 3 times with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 18516.3
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 8:
31 goes into 270 8 times with a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 18516.38
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 9:
220 divided by 31 is 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 18516.387
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 10:
If we divide 30 by 31, we get 0 and a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 18516.387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 11:
If we divide 300 by 31, we get 9 and a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 18516.38709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 12:
When dividing 210 by 31, we get 6 with a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 18516.387096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 13:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 18516.3870967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 14:
When dividing 230 by 31, we get 7 with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 18516.38709677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 18516.38709677 with a balance of 1.3e-08.