8145 ÷ 3 = 2715 R0
Let's divide 8145 by 3.

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

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

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

Step 4:
3 goes into 15 5 times with a remainder of 0.
Write down 5 as next digit of of the result. 
Result so far: 2715
Subtract 15 from 15 to get 0.

The final result is 2715 with a remainder of 0.