We look at the division of 40857 by 3 
Our goal is to divide 40857 by 3.

Going ahead to step 1:
The number 3 fits into 4 1 times, leaving a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 3 from 4 to get 1.
Bring next digit (0) of the dividend behind the 1 and repeat the process: 10 / 3

Moving on to step 2:
3 goes into 10 3 times with a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
Subtract 9 from 10 to get 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 3

Going ahead to step 3:
18 divided by 3 is 6 with a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 136.0
If we subtract 18 from 18, we get 0.
Grab the next digit (5) from the dividend, add it to 0, then carry on: 5 / 3

On to step 4:
If we divide 5 by 3, we get 1 and a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 1361.0
Deduct 3 from 5 and we're left with 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 3

Step 5:
When dividing 27 by 3, we get 9 with a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 13619.0
Deduct 27 from 27 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.

Step 6:
When dividing 0 by 3, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 13619.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.

Advancing to step 7:
3 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 13619.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.

The quotient of the division is 13619.0, and the remainder is 0.0.