Let's divide 358165 by 7
Let's see how many times 7 fits into 358165.

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
Subtract 0 from 3 to get 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 7

Going ahead to step 2:
When dividing 35 by 7, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 35 from 35 leaves us with 0.
Bring next digit (8) of the dividend behind the 0 and repeat the process: 8 / 7

Moving on to step 3:
The number 7 fits into 8 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 51.0
Deduct 7 from 8 and we're left with 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 7

Moving on to step 4:
If we divide 11 by 7, we get 1 and a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 511.0
Subtract 7 from 11 to get 4.
Take the next digit (6) from the dividend and append it to 4, then repeat: 46 / 7

On to step 5:
7 goes into 46 6 times with a remainder of 4.
The next digit of our result is 6. 
Result so far: 5116.0
Subtract 42 from 46 to get 4.
Grab the next digit (5) from the dividend, add it to 4, then carry on: 45 / 7

Moving on to step 6:
The number 7 fits into 45 6 times, leaving a remainder of 3.
The next digit of our result is 6. 
Result so far: 51166.0
If we subtract 42 from 45, we 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.

Advancing to step 7:
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: 51166.4
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.

Moving on to step 8:
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: 51166.42
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.

Going ahead to step 9:
If we divide 60 by 7, we get 8 and a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 51166.428
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.

Step 10:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 51166.4285
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.

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

Advancing to step 12:
10 divided by 7 is 1 with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 51166.428571
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.

On to step 13:
When dividing 30 by 7, we get 4 with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 51166.4285714
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 14:
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: 51166.42857142
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.

The final outcome is 51166.42857142, with a leftover of 6e-09.