We divide 513588 by 40
We want to divide 513588 by 40.

Moving on to step 1:
If we divide 5 by 40, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 40

Step 2:
40 can be fit into 51 1 times, resulting in a remainder of 11.
The next digit of our result is 1. 
Result so far: 1.0
If we take 40 away from 51, we end up with 11.
Take the next digit (3) from the dividend and append it to 11, then repeat: 113 / 40

Moving on to step 3:
The number 40 fits into 113 2 times, leaving a remainder of 33.
The next digit of our result is 2. 
Result so far: 12.0
Subtract 80 from 113 to get 33.
Take the next digit (5) from the dividend and append it to 33, then repeat: 335 / 40

Let's proceed to step 4:
40 goes into 335 8 times with a remainder of 15.
The next digit of our result is 8. 
Result so far: 128.0
If we subtract 320 from 335, we get 15.
Take the next digit (8) from the dividend and append it to 15, then repeat: 158 / 40

Going ahead to step 5:
40 can be fit into 158 3 times, resulting in a remainder of 38.
The number 3 becomes the next digit in our result. 
Result so far: 1283.0
The remainder is 38 after subtracting 120 from 158.
Fetch the next digit (8) from the dividend, attach it to 38 and continue: 388 / 40

On to step 6:
The number 40 fits into 388 9 times, leaving a remainder of 28.
Record the quotient 9 as the next digit in the result. 
Result so far: 12839.0
Deduct 360 from 388 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 7:
The number 40 fits into 280 7 times, leaving a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 12839.7
Deduct 280 from 280 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.

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: 12839.7
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.

Moving on to step 9:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 12839.7
Subtract 0 from 0 to get 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 12839.7, and the remainder is 0.0.