We look at the division of 511611 by 40 
Our goal is to divide 511611 by 40.

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.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 40

Advancing to step 2:
The number 40 fits into 51 1 times, leaving a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 40 from 51 leaves us with 11.
Include the next digit (1) from the dividend after 11, then repeat: 111 / 40

Step 3:
40 goes into 111 2 times with a remainder of 31.
The next digit of our result is 2. 
Result so far: 12.0
Deduct 80 from 111 and we're left with 31.
Take the next digit (6) from the dividend and append it to 31, then repeat: 316 / 40

Going ahead to step 4:
40 can be fit into 316 7 times, resulting in a remainder of 36.
Write down 7 as next digit of the result. 
Result so far: 127.0
If we subtract 280 from 316, we get 36.
Take the next digit (1) from the dividend and append it to 36, then repeat: 361 / 40

Let's proceed to step 5:
361 divided by 40 is 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 1279.0
If we take 360 away from 361, we end up with 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 40

Advancing to step 6:
The number 40 fits into 11 0 times, leaving a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 12790.0
The remainder is 11 after subtracting 0 from 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 7:
110 divided by 40 is 2 with a remainder of 30.
Write down 2 as next digit of the result. 
Result so far: 12790.2
The remainder is 30 after subtracting 80 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 8:
300 divided by 40 is 7 with a remainder of 20.
The next digit of our result is 7. 
Result so far: 12790.27
Subtract 280 from 300 to 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:
200 divided by 40 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 12790.275
If we take 200 away from 200, 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.

Moving on to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 12790.275
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.

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

Our division results in 12790.275 with a remaining 0.0.