We're dividing 396790 by 7 
We want to divide 396790 by 7.

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
If we take 0 away from 3, we end up with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 7

Moving on 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
If we take 35 away from 39, we end up with 4.
Take the next digit (6) from the dividend and append it to 4, then repeat: 46 / 7

Step 3:
If we divide 46 by 7, we get 6 and a remainder of 4.
The next digit of our result is 6. 
Result so far: 56.0
Deduct 42 from 46 and we're left with 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 7

Step 4:
7 can be fit into 47 6 times, resulting in a remainder of 5.
Write down 6 as next digit of the result. 
Result so far: 566.0
Subtract 42 from 47 to get 5.
Fetch the next digit (9) from the dividend, attach it to 5 and continue: 59 / 7

Going ahead to step 5:
7 can be fit into 59 8 times, resulting in a remainder of 3.
The number 8 becomes the next digit in our result. 
Result so far: 5668.0
Subtracting 56 from 59 leaves us with 3.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 7

Advancing to step 6:
7 can be fit into 30 4 times, resulting in a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 56684.0
Subtracting 28 from 30 leaves us 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.

On to step 7:
If we divide 20 by 7, we get 2 and a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 56684.2
If we take 14 away from 20, we end up 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 8:
When dividing 60 by 7, we get 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 56684.28
Subtract 56 from 60 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
When dividing 40 by 7, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 56684.285
Subtracting 35 from 40 leaves us 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.

On to step 10:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 56684.2857
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.

Moving on to step 11:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 56684.28571
If we take 7 away from 10, we end up 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 12:
The number 7 fits into 30 4 times, leaving a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 56684.285714
If we subtract 28 from 30, we 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.

Advancing to step 13:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 56684.2857142
The remainder is 6 after subtracting 14 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 14:
7 goes into 60 8 times with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 56684.28571428
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.

Our division results in 56684.28571428 with a remaining 4e-09.