We look at the division of 40406259 by 512 
We want to divide 40406259 by 512.

Going ahead to step 1:
512 can be fit into 4 0 times, resulting in a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 512

Step 2:
When dividing 40 by 512, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Bring next digit (4) of the dividend behind the 40 and repeat the process: 404 / 512

Moving on to step 3:
When dividing 404 by 512, we get 0 with a remainder of 404.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 404 after subtracting 0 from 404.
Grab the next digit (0) from the dividend, add it to 404, then carry on: 4040 / 512

On to step 4:
512 can be fit into 4040 7 times, resulting in a remainder of 456.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
Deduct 3584 from 4040 and we're left with 456.
Fetch the next digit (6) from the dividend, attach it to 456 and continue: 4566 / 512

Advancing to step 5:
The number 512 fits into 4566 8 times, leaving a remainder of 470.
Use 8 as the next digit of our solution. 
Result so far: 78.0
The remainder is 470 after subtracting 4096 from 4566.
Append the next digit (2) from the dividend to 470 and continue with: 4702 / 512

On to step 6:
When dividing 4702 by 512, we get 9 with a remainder of 94.
Record the quotient 9 as the next digit in the result. 
Result so far: 789.0
The remainder is 94 after subtracting 4608 from 4702.
Grab the next digit (5) from the dividend, add it to 94, then carry on: 945 / 512

Going ahead to step 7:
945 divided by 512 is 1 with a remainder of 433.
The next digit of our result is 1. 
Result so far: 7891.0
If we take 512 away from 945, we end up with 433.
Take the next digit (9) from the dividend and append it to 433, then repeat: 4339 / 512

On to step 8:
512 can be fit into 4339 8 times, resulting in a remainder of 243.
The number 8 becomes the next digit in our result. 
Result so far: 78918.0
If we subtract 4096 from 4339, we get 243.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2430, and continue the process.

Let's proceed to step 9:
2430 divided by 512 is 4 with a remainder of 382.
The number 4 becomes the next digit in our result. 
Result so far: 78918.4
If we subtract 2048 from 2430, we get 382.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3820, and continue the process.

Advancing to step 10:
512 can be fit into 3820 7 times, resulting in a remainder of 236.
Record the quotient 7 as the next digit in the result. 
Result so far: 78918.47
Subtract 3584 from 3820 to get 236.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2360, and continue the process.

Going ahead to step 11:
512 can be fit into 2360 4 times, resulting in a remainder of 312.
Use 4 as the next digit of our solution. 
Result so far: 78918.474
If we take 2048 away from 2360, we end up with 312.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3120, and continue the process.

Let's proceed to step 12:
When dividing 3120 by 512, we get 6 with a remainder of 48.
The next digit of our result is 6. 
Result so far: 78918.4746
If we take 3072 away from 3120, we end up with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Going ahead to step 13:
When dividing 480 by 512, we get 0 with a remainder of 480.
Put 0 as the next digit of the answer. 
Result so far: 78918.4746
If we subtract 0 from 480, we get 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

Going ahead to step 14:
512 goes into 4800 9 times with a remainder of 192.
The number 9 becomes the next digit in our result. 
Result so far: 78918.474609
Subtracting 4608 from 4800 leaves us with 192.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1920, and continue the process.

Step 15:
512 goes into 1920 3 times with a remainder of 384.
Write down 3 as next digit of the result. 
Result so far: 78918.4746093
If we subtract 1536 from 1920, we get 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

On to step 16:
When dividing 3840 by 512, we get 7 with a remainder of 256.
Write down 7 as next digit of the result. 
Result so far: 78918.47460937
Deduct 3584 from 3840 and we're left with 256.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2560, and continue the process.

After the division, we end up with 78918.47460937 and a remainder of 2.56e-07.