We're dividing 394997 by 7 
Let's see how many times 7 fits into 394997.

Advancing to step 1:
If we divide 3 by 7, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 7

Step 2:
When dividing 39 by 7, we get 5 with a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtract 35 from 39 to get 4.
Grab the next digit (4) from the dividend, add it to 4, then carry on: 44 / 7

Advancing to step 3:
7 goes into 44 6 times with a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 56.0
The remainder is 2 after subtracting 42 from 44.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 7

Moving on to step 4:
If we divide 29 by 7, we get 4 and a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 564.0
If we subtract 28 from 29, we get 1.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 7

Moving on to step 5:
7 goes into 19 2 times with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 5642.0
Subtract 14 from 19 to get 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 7

Moving on to step 6:
57 divided by 7 is 8 with a remainder of 1.
The next digit of our result is 8. 
Result so far: 56428.0
Subtracting 56 from 57 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 7:
10 divided by 7 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 56428.1
The remainder is 3 after subtracting 7 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 8:
7 goes into 30 4 times with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 56428.14
Subtract 28 from 30 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 9:
When dividing 20 by 7, we get 2 with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 56428.142
Deduct 14 from 20 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 10:
When dividing 60 by 7, we get 8 with a remainder of 4.
The next digit of our result is 8. 
Result so far: 56428.1428
Subtracting 56 from 60 leaves us 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.

Going ahead to step 11:
7 goes into 40 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 56428.14285
If we subtract 35 from 40, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 12:
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: 56428.142857
If we take 49 away from 50, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 13:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 56428.1428571
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.

On to step 14:
30 divided by 7 is 4 with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 56428.14285714
Subtract 28 from 30 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 56428.14285714, and the remainder is 2e-09.