164840 divided by 2 
We're looking to find how many times 2 goes into 164840.

Step 1:
The number 2 fits into 1 0 times, leaving a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 2

Moving on to step 2:
If we divide 16 by 2, we get 8 and a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 8.0
If we subtract 16 from 16, we get 0.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 2

Step 3:
4 divided by 2 is 2 with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 82.0
If we subtract 4 from 4, we get 0.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 2

Going ahead to step 4:
If we divide 8 by 2, we get 4 and a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 824.0
Subtract 8 from 8 to get 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 2

Going ahead to step 5:
2 can be fit into 4 2 times, resulting in a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 8242.0
Deduct 4 from 4 and we're left with 0.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 2

On to step 6:
When dividing 0 by 2, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 82420.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 7:
2 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 82420.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
2 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 82420.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 82420.0, with a leftover of 0.0.