31578662 ÷ 778 
We want to figure out the number of times 31578662 can be divided by 778.

Advancing to step 1:
778 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 778

On to step 2:
31 divided by 778 is 0 with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Grab the next digit (5) from the dividend, add it to 31, then carry on: 315 / 778

Moving on to step 3:
315 divided by 778 is 0 with a remainder of 315.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 315 leaves us with 315.
Grab the next digit (7) from the dividend, add it to 315, then carry on: 3157 / 778

Step 4:
If we divide 3157 by 778, we get 4 and a remainder of 45.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtracting 3112 from 3157 leaves us with 45.
Bring next digit (8) of the dividend behind the 45 and repeat the process: 458 / 778

Moving on to step 5:
If we divide 458 by 778, we get 0 and a remainder of 458.
Put 0 as the next digit of the answer. 
Result so far: 40.0
Subtracting 0 from 458 leaves us with 458.
Grab the next digit (6) from the dividend, add it to 458, then carry on: 4586 / 778

Step 6:
4586 divided by 778 is 5 with a remainder of 696.
Write down 5 as next digit of the result. 
Result so far: 405.0
Subtracting 3890 from 4586 leaves us with 696.
Bring next digit (6) of the dividend behind the 696 and repeat the process: 6966 / 778

Let's proceed to step 7:
If we divide 6966 by 778, we get 8 and a remainder of 742.
Write down 8 as next digit of the result. 
Result so far: 4058.0
The remainder is 742 after subtracting 6224 from 6966.
Append the next digit (2) from the dividend to 742 and continue with: 7422 / 778

Let's proceed to step 8:
When dividing 7422 by 778, we get 9 with a remainder of 420.
Write down 9 as next digit of the result. 
Result so far: 40589.0
Subtracting 7002 from 7422 leaves us with 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4200, and continue the process.

Going ahead to step 9:
If we divide 4200 by 778, we get 5 and a remainder of 310.
Record the quotient 5 as the next digit in the result. 
Result so far: 40589.5
Subtracting 3890 from 4200 leaves us with 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

Moving on to step 10:
When dividing 3100 by 778, we get 3 with a remainder of 766.
Put 3 as the next digit of the answer. 
Result so far: 40589.53
If we subtract 2334 from 3100, we get 766.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7660, and continue the process.

Going ahead to step 11:
If we divide 7660 by 778, we get 9 and a remainder of 658.
Use 9 as the next digit of our solution. 
Result so far: 40589.539
If we take 7002 away from 7660, we end up with 658.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6580, and continue the process.

On to step 12:
If we divide 6580 by 778, we get 8 and a remainder of 356.
The number 8 becomes the next digit in our result. 
Result so far: 40589.5398
The remainder is 356 after subtracting 6224 from 6580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3560, and continue the process.

Moving on to step 13:
778 can be fit into 3560 4 times, resulting in a remainder of 448.
Put 4 as the next digit of the answer. 
Result so far: 40589.53984
Subtract 3112 from 3560 to get 448.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4480, and continue the process.

On to step 14:
4480 divided by 778 is 5 with a remainder of 590.
Use 5 as the next digit of our solution. 
Result so far: 40589.539845
If we take 3890 away from 4480, we end up with 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5900, and continue the process.

On to step 15:
778 can be fit into 5900 7 times, resulting in a remainder of 454.
Put 7 as the next digit of the answer. 
Result so far: 40589.5398457
Subtract 5446 from 5900 to get 454.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4540, and continue the process.

Let's proceed to step 16:
778 can be fit into 4540 5 times, resulting in a remainder of 650.
The next digit of our result is 5. 
Result so far: 40589.53984575
Subtracting 3890 from 4540 leaves us with 650.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6500, and continue the process.

The final outcome is 40589.53984575, with a leftover of 6.5e-07.