5387 ÷ 5 = 1077 R2
We're going to perform division on 5387 with 5 as the divisor.

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

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

Step 3:
5 goes into 38 7 times with a remainder of 3.
Write down 7 as next digit of of the result. 
Result so far: 107
Subtract 35 from 38 to get 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 5

Step 4:
5 goes into 37 7 times with a remainder of 2.
Write down 7 as next digit of of the result. 
Result so far: 1077
Subtract 35 from 37 to get 2.

The final result is 1077 with a remainder of 2.