We divide 396817 by 7
We're looking to find how many times 7 goes into 396817.

Advancing to step 1:
3 divided by 7 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 7

On to step 2:
If we divide 39 by 7, we get 5 and a remainder of 4.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Deduct 35 from 39 and we're left with 4.
Grab the next digit (6) from the dividend, add it to 4, then carry on: 46 / 7

Going ahead to step 3:
7 can be fit into 46 6 times, resulting in a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 56.0
If we take 42 away from 46, we end up with 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 7

On to step 4:
When dividing 48 by 7, we get 6 with a remainder of 6.
Use 6 as the next digit of our solution. 
Result so far: 566.0
The remainder is 6 after subtracting 42 from 48.
Take the next digit (1) from the dividend and append it to 6, then repeat: 61 / 7

Advancing to step 5:
7 can be fit into 61 8 times, resulting in a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 5668.0
The remainder is 5 after subtracting 56 from 61.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 7

Advancing to step 6:
7 can be fit into 57 8 times, resulting in a remainder of 1.
Put 8 as the next digit of the answer. 
Result so far: 56688.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:
The number 7 fits into 10 1 times, leaving a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 56688.1
Deduct 7 from 10 and we're left 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.

Step 8:
When dividing 30 by 7, we get 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 56688.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.

Let's proceed to step 9:
When dividing 20 by 7, we get 2 with a remainder of 6.
The next digit of our result is 2. 
Result so far: 56688.142
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.

Moving on to step 10:
60 divided by 7 is 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 56688.1428
If we subtract 56 from 60, we 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.

Advancing to step 11:
If we divide 40 by 7, we get 5 and a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 56688.14285
If we take 35 away from 40, we end up 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.

Advancing to step 12:
If we divide 50 by 7, we get 7 and a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 56688.142857
The remainder is 1 after subtracting 49 from 50.
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 13:
The number 7 fits into 10 1 times, leaving a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 56688.1428571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 14:
When dividing 30 by 7, we get 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 56688.14285714
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.

In conclusion, the division gives 56688.14285714 with a balance of 2e-09.