Let's divide 39778 by 7
We want to figure out the number of times 39778 can be divided by 7.

Moving on to step 1:
When dividing 3 by 7, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 7

Going ahead to step 2:
39 divided by 7 is 5 with a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 5.0
The remainder is 4 after subtracting 35 from 39.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 7

Let's proceed to step 3:
47 divided by 7 is 6 with a remainder of 5.
Record the quotient 6 as the next digit in the result. 
Result so far: 56.0
Subtracting 42 from 47 leaves us with 5.
Grab the next digit (7) from the dividend, add it to 5, then carry on: 57 / 7

Moving on to step 4:
When dividing 57 by 7, we get 8 with a remainder of 1.
Put 8 as the next digit of the answer. 
Result so far: 568.0
Subtract 56 from 57 to get 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 7

On to step 5:
18 divided by 7 is 2 with a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 5682.0
If we take 14 away from 18, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 6:
The number 7 fits into 40 5 times, leaving a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 5682.5
Deduct 35 from 40 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 7:
7 goes into 50 7 times with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 5682.57
Subtract 49 from 50 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 8:
If we divide 10 by 7, we get 1 and a remainder of 3.
The next digit of our result is 1. 
Result so far: 5682.571
Subtracting 7 from 10 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 9:
7 goes into 30 4 times with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 5682.5714
Deduct 28 from 30 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 10:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 5682.57142
If we subtract 14 from 20, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 11:
7 goes into 60 8 times with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 5682.571428
Deduct 56 from 60 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 12:
7 goes into 40 5 times with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 5682.5714285
The remainder is 5 after subtracting 35 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 13:
7 can be fit into 50 7 times, resulting in a remainder of 1.
The next digit of our result is 7. 
Result so far: 5682.57142857
If we subtract 49 from 50, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Our division results in 5682.57142857 with a remaining 1e-09.