Let's divide 158245 by 509
Let's see how many times 509 fits into 158245.

On to step 1:
509 goes into 1 0 times with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 509

Step 2:
15 divided by 509 is 0 with a remainder of 15.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 15 to get 15.
Grab the next digit (8) from the dividend, add it to 15, then carry on: 158 / 509

Going ahead to step 3:
509 goes into 158 0 times with a remainder of 158.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 158 after subtracting 0 from 158.
Bring next digit (2) of the dividend behind the 158 and repeat the process: 1582 / 509

Going ahead to step 4:
1582 divided by 509 is 3 with a remainder of 55.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Deduct 1527 from 1582 and we're left with 55.
Bring next digit (4) of the dividend behind the 55 and repeat the process: 554 / 509

Going ahead to step 5:
The number 509 fits into 554 1 times, leaving a remainder of 45.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
The remainder is 45 after subtracting 509 from 554.
Append the next digit (5) from the dividend to 45 and continue with: 455 / 509

Step 6:
When dividing 455 by 509, we get 0 with a remainder of 455.
Put 0 as the next digit of the answer. 
Result so far: 310.0
Subtracting 0 from 455 leaves us with 455.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4550, and continue the process.

Moving on to step 7:
509 can be fit into 4550 8 times, resulting in a remainder of 478.
Record the quotient 8 as the next digit in the result. 
Result so far: 310.8
Subtracting 4072 from 4550 leaves us with 478.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4780, and continue the process.

Step 8:
The number 509 fits into 4780 9 times, leaving a remainder of 199.
The next digit of our result is 9. 
Result so far: 310.89
Subtracting 4581 from 4780 leaves us with 199.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1990, and continue the process.

On to step 9:
If we divide 1990 by 509, we get 3 and a remainder of 463.
The number 3 becomes the next digit in our result. 
Result so far: 310.893
If we subtract 1527 from 1990, we get 463.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4630, and continue the process.

Advancing to step 10:
509 goes into 4630 9 times with a remainder of 49.
Write down 9 as next digit of the result. 
Result so far: 310.8939
The remainder is 49 after subtracting 4581 from 4630.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Moving on to step 11:
The number 509 fits into 490 0 times, leaving a remainder of 490.
The number 0 becomes the next digit in our result. 
Result so far: 310.8939
If we take 0 away from 490, we end up with 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4900, and continue the process.

On to step 12:
509 goes into 4900 9 times with a remainder of 319.
Put 9 as the next digit of the answer. 
Result so far: 310.893909
The remainder is 319 after subtracting 4581 from 4900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3190, and continue the process.

Going ahead to step 13:
509 can be fit into 3190 6 times, resulting in a remainder of 136.
Record the quotient 6 as the next digit in the result. 
Result so far: 310.8939096
Subtracting 3054 from 3190 leaves us with 136.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

Step 14:
509 can be fit into 1360 2 times, resulting in a remainder of 342.
The number 2 becomes the next digit in our result. 
Result so far: 310.89390962
Subtracting 1018 from 1360 leaves us with 342.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3420, and continue the process.

Our division results in 310.89390962 with a remaining 3.42e-07.