We're dividing 40717544 by 507 
Our goal is to divide 40717544 by 507.

Moving on to step 1:
The number 507 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 507

Advancing to step 2:
40 divided by 507 is 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Append the next digit (7) from the dividend to 40 and continue with: 407 / 507

Moving on to step 3:
507 can be fit into 407 0 times, resulting in a remainder of 407.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 407, we end up with 407.
Take the next digit (1) from the dividend and append it to 407, then repeat: 4071 / 507

Step 4:
507 goes into 4071 8 times with a remainder of 15.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Deduct 4056 from 4071 and we're left with 15.
Grab the next digit (7) from the dividend, add it to 15, then carry on: 157 / 507

Let's proceed to step 5:
When dividing 157 by 507, we get 0 with a remainder of 157.
Put 0 as the next digit of the answer. 
Result so far: 80.0
Subtract 0 from 157 to get 157.
Take the next digit (5) from the dividend and append it to 157, then repeat: 1575 / 507

Moving on to step 6:
507 goes into 1575 3 times with a remainder of 54.
Write down 3 as next digit of the result. 
Result so far: 803.0
If we take 1521 away from 1575, we end up with 54.
Take the next digit (4) from the dividend and append it to 54, then repeat: 544 / 507

Advancing to step 7:
The number 507 fits into 544 1 times, leaving a remainder of 37.
The next digit of our result is 1. 
Result so far: 8031.0
Deduct 507 from 544 and we're left with 37.
Fetch the next digit (4) from the dividend, attach it to 37 and continue: 374 / 507

Advancing to step 8:
The number 507 fits into 374 0 times, leaving a remainder of 374.
The next digit of our result is 0. 
Result so far: 80310.0
Subtracting 0 from 374 leaves us with 374.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3740, and continue the process.

Let's proceed to step 9:
When dividing 3740 by 507, we get 7 with a remainder of 191.
The next digit of our result is 7. 
Result so far: 80310.7
If we subtract 3549 from 3740, we get 191.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1910, and continue the process.

Let's proceed to step 10:
The number 507 fits into 1910 3 times, leaving a remainder of 389.
Write down 3 as next digit of the result. 
Result so far: 80310.73
If we subtract 1521 from 1910, we get 389.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3890, and continue the process.

Let's proceed to step 11:
When dividing 3890 by 507, we get 7 with a remainder of 341.
The next digit of our result is 7. 
Result so far: 80310.737
If we take 3549 away from 3890, we end up with 341.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3410, and continue the process.

Step 12:
507 can be fit into 3410 6 times, resulting in a remainder of 368.
The next digit of our result is 6. 
Result so far: 80310.7376
Subtracting 3042 from 3410 leaves us with 368.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3680, and continue the process.

On to step 13:
If we divide 3680 by 507, we get 7 and a remainder of 131.
Record the quotient 7 as the next digit in the result. 
Result so far: 80310.73767
If we take 3549 away from 3680, we end up with 131.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1310, and continue the process.

Let's proceed to step 14:
507 goes into 1310 2 times with a remainder of 296.
The number 2 becomes the next digit in our result. 
Result so far: 80310.737672
Subtract 1014 from 1310 to get 296.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2960, and continue the process.

Step 15:
507 goes into 2960 5 times with a remainder of 425.
Record the quotient 5 as the next digit in the result. 
Result so far: 80310.7376725
Subtract 2535 from 2960 to get 425.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4250, and continue the process.

Let's proceed to step 16:
4250 divided by 507 is 8 with a remainder of 194.
Put 8 as the next digit of the answer. 
Result so far: 80310.73767258
If we take 4056 away from 4250, we end up with 194.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1940, and continue the process.

Our division results in 80310.73767258 with a remaining 1.94e-07.