We're dividing 515779 by 40 
We want to divide 515779 by 40.

Moving on to step 1:
If we divide 5 by 40, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 40

Step 2:
The number 40 fits into 51 1 times, leaving a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 11 after subtracting 40 from 51.
Grab the next digit (5) from the dividend, add it to 11, then carry on: 115 / 40

Step 3:
If we divide 115 by 40, we get 2 and a remainder of 35.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Subtracting 80 from 115 leaves us with 35.
Take the next digit (7) from the dividend and append it to 35, then repeat: 357 / 40

Going ahead to step 4:
When dividing 357 by 40, we get 8 with a remainder of 37.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
Subtracting 320 from 357 leaves us with 37.
Include the next digit (7) from the dividend after 37, then repeat: 377 / 40

Moving on to step 5:
The number 40 fits into 377 9 times, leaving a remainder of 17.
Put 9 as the next digit of the answer. 
Result so far: 1289.0
Subtracting 360 from 377 leaves us with 17.
Append the next digit (9) from the dividend to 17 and continue with: 179 / 40

Moving on to step 6:
When dividing 179 by 40, we get 4 with a remainder of 19.
The next digit of our result is 4. 
Result so far: 12894.0
The remainder is 19 after subtracting 160 from 179.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 7:
190 divided by 40 is 4 with a remainder of 30.
Put 4 as the next digit of the answer. 
Result so far: 12894.4
If we take 160 away from 190, 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.

Moving on to step 8:
40 can be fit into 300 7 times, resulting in a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 12894.47
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 12894.475
Subtract 200 from 200 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.

Let's proceed to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 12894.475
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.

On to step 11:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 12894.475
The remainder is 0 after subtracting 0 from 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 12894.475, and the remainder is 0.0.