3159 ÷ 2 = 1579 R1
Let's divide 3159 by 2.

Step 1:
2 goes into 3 1 times with a remainder of 1.
Write down 1 as next digit of of the result. 
Result so far: 1
Subtract 2 from 3 to get 1.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 2

Step 2:
2 goes into 11 5 times with a remainder of 1.
Write down 5 as next digit of of the result. 
Result so far: 15
Subtract 10 from 11 to get 1.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 2

Step 3:
2 goes into 15 7 times with a remainder of 1.
Write down 7 as next digit of of the result. 
Result so far: 157
Subtract 14 from 15 to get 1.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 2

Step 4:
2 goes into 19 9 times with a remainder of 1.
Write down 9 as next digit of of the result. 
Result so far: 1579
Subtract 18 from 19 to get 1.

The final result is 1579 with a remainder of 1.