40197651 ÷ 778 
Let's see how many times 778 fits into 40197651.

On to step 1:
778 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 778

Advancing to step 2:
40 divided by 778 is 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Include the next digit (1) from the dividend after 40, then repeat: 401 / 778

Advancing to step 3:
778 goes into 401 0 times with a remainder of 401.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 401 leaves us with 401.
Fetch the next digit (9) from the dividend, attach it to 401 and continue: 4019 / 778

On to step 4:
4019 divided by 778 is 5 with a remainder of 129.
Write down 5 as next digit of the result. 
Result so far: 5.0
Subtract 3890 from 4019 to get 129.
Include the next digit (7) from the dividend after 129, then repeat: 1297 / 778

Advancing to step 5:
778 goes into 1297 1 times with a remainder of 519.
Write down 1 as next digit of the result. 
Result so far: 51.0
Deduct 778 from 1297 and we're left with 519.
Append the next digit (6) from the dividend to 519 and continue with: 5196 / 778

Going ahead to step 6:
When dividing 5196 by 778, we get 6 with a remainder of 528.
Put 6 as the next digit of the answer. 
Result so far: 516.0
Deduct 4668 from 5196 and we're left with 528.
Take the next digit (5) from the dividend and append it to 528, then repeat: 5285 / 778

Moving on to step 7:
778 goes into 5285 6 times with a remainder of 617.
Record the quotient 6 as the next digit in the result. 
Result so far: 5166.0
If we subtract 4668 from 5285, we get 617.
Take the next digit (1) from the dividend and append it to 617, then repeat: 6171 / 778

Advancing to step 8:
When dividing 6171 by 778, we get 7 with a remainder of 725.
Use 7 as the next digit of our solution. 
Result so far: 51667.0
Subtract 5446 from 6171 to get 725.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7250, and continue the process.

On to step 9:
When dividing 7250 by 778, we get 9 with a remainder of 248.
The next digit of our result is 9. 
Result so far: 51667.9
Deduct 7002 from 7250 and we're left with 248.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2480, and continue the process.

On to step 10:
The number 778 fits into 2480 3 times, leaving a remainder of 146.
Record the quotient 3 as the next digit in the result. 
Result so far: 51667.93
If we take 2334 away from 2480, we end up with 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Step 11:
778 goes into 1460 1 times with a remainder of 682.
Put 1 as the next digit of the answer. 
Result so far: 51667.931
The remainder is 682 after subtracting 778 from 1460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6820, and continue the process.

Going ahead to step 12:
If we divide 6820 by 778, we get 8 and a remainder of 596.
Record the quotient 8 as the next digit in the result. 
Result so far: 51667.9318
If we take 6224 away from 6820, we end up with 596.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5960, and continue the process.

Moving on to step 13:
5960 divided by 778 is 7 with a remainder of 514.
Record the quotient 7 as the next digit in the result. 
Result so far: 51667.93187
Subtracting 5446 from 5960 leaves us with 514.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5140, and continue the process.

On to step 14:
778 can be fit into 5140 6 times, resulting in a remainder of 472.
The number 6 becomes the next digit in our result. 
Result so far: 51667.931876
If we take 4668 away from 5140, we end up with 472.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4720, and continue the process.

On to step 15:
When dividing 4720 by 778, we get 6 with a remainder of 52.
Put 6 as the next digit of the answer. 
Result so far: 51667.9318766
Deduct 4668 from 4720 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Our division results in 51667.9318766 with a remaining 5.2e-07.