Let's divide 40657517 by 517
Let's see how many times 517 fits into 40657517.

Advancing to step 1:
517 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 take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 517

Advancing to step 2:
When dividing 40 by 517, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Append the next digit (6) from the dividend to 40 and continue with: 406 / 517

Step 3:
517 can be fit into 406 0 times, resulting in a remainder of 406.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 406 to get 406.
Append the next digit (5) from the dividend to 406 and continue with: 4065 / 517

Let's proceed to step 4:
If we divide 4065 by 517, we get 7 and a remainder of 446.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
Subtract 3619 from 4065 to get 446.
Grab the next digit (7) from the dividend, add it to 446, then carry on: 4467 / 517

Let's proceed to step 5:
The number 517 fits into 4467 8 times, leaving a remainder of 331.
The number 8 becomes the next digit in our result. 
Result so far: 78.0
The remainder is 331 after subtracting 4136 from 4467.
Take the next digit (5) from the dividend and append it to 331, then repeat: 3315 / 517

Let's proceed to step 6:
The number 517 fits into 3315 6 times, leaving a remainder of 213.
Write down 6 as next digit of the result. 
Result so far: 786.0
If we subtract 3102 from 3315, we get 213.
Grab the next digit (1) from the dividend, add it to 213, then carry on: 2131 / 517

Advancing to step 7:
If we divide 2131 by 517, we get 4 and a remainder of 63.
Record the quotient 4 as the next digit in the result. 
Result so far: 7864.0
Subtract 2068 from 2131 to get 63.
Append the next digit (7) from the dividend to 63 and continue with: 637 / 517

Step 8:
The number 517 fits into 637 1 times, leaving a remainder of 120.
Record the quotient 1 as the next digit in the result. 
Result so far: 78641.0
Deduct 517 from 637 and we're left with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

On to step 9:
The number 517 fits into 1200 2 times, leaving a remainder of 166.
The number 2 becomes the next digit in our result. 
Result so far: 78641.2
The remainder is 166 after subtracting 1034 from 1200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

Let's proceed to step 10:
If we divide 1660 by 517, we get 3 and a remainder of 109.
The number 3 becomes the next digit in our result. 
Result so far: 78641.23
Deduct 1551 from 1660 and we're left with 109.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1090, and continue the process.

Going ahead to step 11:
517 goes into 1090 2 times with a remainder of 56.
Put 2 as the next digit of the answer. 
Result so far: 78641.232
If we subtract 1034 from 1090, we get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Moving on to step 12:
517 goes into 560 1 times with a remainder of 43.
The next digit of our result is 1. 
Result so far: 78641.2321
The remainder is 43 after subtracting 517 from 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Going ahead to step 13:
517 can be fit into 430 0 times, resulting in a remainder of 430.
Put 0 as the next digit of the answer. 
Result so far: 78641.2321
Subtract 0 from 430 to get 430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4300, and continue the process.

On to step 14:
4300 divided by 517 is 8 with a remainder of 164.
The next digit of our result is 8. 
Result so far: 78641.232108
Subtract 4136 from 4300 to get 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

Moving on to step 15:
1640 divided by 517 is 3 with a remainder of 89.
The next digit of our result is 3. 
Result so far: 78641.2321083
If we subtract 1551 from 1640, we get 89.
Since there are no more digits in the dividend, we add a zero to the remainder making it 890, and continue the process.

On to step 16:
517 can be fit into 890 1 times, resulting in a remainder of 373.
The number 1 becomes the next digit in our result. 
Result so far: 78641.23210831
If we take 517 away from 890, we end up with 373.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3730, and continue the process.

The final outcome is 78641.23210831, with a leftover of 3.73e-07.