Let's divide 340051 by 7
We want to divide 340051 by 7.

Going ahead to step 1:
If we divide 3 by 7, we get 0 and a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 7

On to step 2:
When dividing 34 by 7, we get 4 with a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
If we subtract 28 from 34, we get 6.
Grab the next digit (0) from the dividend, add it to 6, then carry on: 60 / 7

Step 3:
7 can be fit into 60 8 times, resulting in a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 48.0
Subtracting 56 from 60 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 7

On to step 4:
When dividing 40 by 7, we get 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 485.0
Deduct 35 from 40 and we're left with 5.
Include the next digit (5) from the dividend after 5, then repeat: 55 / 7

Moving on to step 5:
7 goes into 55 7 times with a remainder of 6.
The next digit of our result is 7. 
Result so far: 4857.0
The remainder is 6 after subtracting 49 from 55.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 7

Step 6:
61 divided by 7 is 8 with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 48578.0
The remainder is 5 after subtracting 56 from 61.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
50 divided by 7 is 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 48578.7
Deduct 49 from 50 and we're left 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.

Moving on to step 8:
7 goes into 10 1 times with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 48578.71
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 9:
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: 48578.714
If we take 28 away from 30, we end up 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.

Going ahead to step 10:
The number 7 fits into 20 2 times, leaving a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 48578.7142
Subtract 14 from 20 to 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.

Step 11:
If we divide 60 by 7, we get 8 and a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 48578.71428
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 12:
The number 7 fits into 40 5 times, leaving a remainder of 5.
The next digit of our result is 5. 
Result so far: 48578.714285
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.

Going ahead to step 13:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 48578.7142857
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.

Advancing to step 14:
If we divide 10 by 7, we get 1 and a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 48578.71428571
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.

After the division, we end up with 48578.71428571 and a remainder of 3e-09.