40589627 divided by 508 
Our goal is to divide 40589627 by 508.

Going ahead to step 1:
508 can be fit into 4 0 times, resulting in a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 508

On to step 2:
The number 508 fits into 40 0 times, leaving a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (5) from the dividend, add it to 40, then carry on: 405 / 508

Going ahead to step 3:
405 divided by 508 is 0 with a remainder of 405.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 405, we end up with 405.
Fetch the next digit (8) from the dividend, attach it to 405 and continue: 4058 / 508

Going ahead to step 4:
508 goes into 4058 7 times with a remainder of 502.
The next digit of our result is 7. 
Result so far: 7.0
The remainder is 502 after subtracting 3556 from 4058.
Append the next digit (9) from the dividend to 502 and continue with: 5029 / 508

Moving on to step 5:
The number 508 fits into 5029 9 times, leaving a remainder of 457.
Use 9 as the next digit of our solution. 
Result so far: 79.0
If we subtract 4572 from 5029, we get 457.
Append the next digit (6) from the dividend to 457 and continue with: 4576 / 508

On to step 6:
508 goes into 4576 9 times with a remainder of 4.
Put 9 as the next digit of the answer. 
Result so far: 799.0
Subtracting 4572 from 4576 leaves us with 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 508

Moving on to step 7:
The number 508 fits into 42 0 times, leaving a remainder of 42.
Write down 0 as next digit of the result. 
Result so far: 7990.0
The remainder is 42 after subtracting 0 from 42.
Take the next digit (7) from the dividend and append it to 42, then repeat: 427 / 508

Moving on to step 8:
508 goes into 427 0 times with a remainder of 427.
Record the quotient 0 as the next digit in the result. 
Result so far: 79900.0
If we subtract 0 from 427, we get 427.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4270, and continue the process.

On to step 9:
4270 divided by 508 is 8 with a remainder of 206.
Use 8 as the next digit of our solution. 
Result so far: 79900.8
The remainder is 206 after subtracting 4064 from 4270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

Let's proceed to step 10:
If we divide 2060 by 508, we get 4 and a remainder of 28.
The next digit of our result is 4. 
Result so far: 79900.84
Deduct 2032 from 2060 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.

Moving on to step 11:
280 divided by 508 is 0 with a remainder of 280.
Write down 0 as next digit of the result. 
Result so far: 79900.84
If we subtract 0 from 280, we get 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Moving on to step 12:
The number 508 fits into 2800 5 times, leaving a remainder of 260.
The number 5 becomes the next digit in our result. 
Result so far: 79900.8405
Subtracting 2540 from 2800 leaves us with 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

On to step 13:
2600 divided by 508 is 5 with a remainder of 60.
The next digit of our result is 5. 
Result so far: 79900.84055
If we take 2540 away from 2600, we end up with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

After the division, we end up with 79900.84055 and a remainder of 6e-05.