We're dividing 583837 by 40 
We're looking to find how many times 40 goes into 583837.

Advancing to step 1:
40 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
Subtracting 0 from 5 leaves us with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 40

Step 2:
If we divide 58 by 40, we get 1 and a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 40 away from 58, we end up with 18.
Include the next digit (3) from the dividend after 18, then repeat: 183 / 40

Advancing to step 3:
40 can be fit into 183 4 times, resulting in a remainder of 23.
The next digit of our result is 4. 
Result so far: 14.0
Deduct 160 from 183 and we're left with 23.
Append the next digit (8) from the dividend to 23 and continue with: 238 / 40

Going ahead to step 4:
40 goes into 238 5 times with a remainder of 38.
Write down 5 as next digit of the result. 
Result so far: 145.0
Subtracting 200 from 238 leaves us with 38.
Fetch the next digit (3) from the dividend, attach it to 38 and continue: 383 / 40

Going ahead to step 5:
When dividing 383 by 40, we get 9 with a remainder of 23.
The next digit of our result is 9. 
Result so far: 1459.0
Subtracting 360 from 383 leaves us with 23.
Bring next digit (7) of the dividend behind the 23 and repeat the process: 237 / 40

Going ahead to step 6:
When dividing 237 by 40, we get 5 with a remainder of 37.
Write down 5 as next digit of the result. 
Result so far: 14595.0
If we take 200 away from 237, we end up 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.

Let's proceed to step 7:
370 divided by 40 is 9 with a remainder of 10.
Use 9 as the next digit of our solution. 
Result so far: 14595.9
Subtracting 360 from 370 leaves us with 10.
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.
Use 2 as the next digit of our solution. 
Result so far: 14595.92
Subtracting 80 from 100 leaves us 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.

Going ahead to step 9:
200 divided by 40 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14595.925
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14595.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.

Going ahead to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14595.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.

After the division, we end up with 14595.925 and a remainder of 0.0.