51394 ÷ 4 
Our goal is to divide 51394 by 4.

Going ahead to step 1:
The number 4 fits into 5 1 times, leaving a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 4 from 5, we get 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 4

Going ahead to step 2:
4 goes into 11 2 times with a remainder of 3.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Deduct 8 from 11 and we're left with 3.
Append the next digit (3) from the dividend to 3 and continue with: 33 / 4

On to step 3:
The number 4 fits into 33 8 times, leaving a remainder of 1.
Write down 8 as next digit of the result. 
Result so far: 128.0
If we subtract 32 from 33, we get 1.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 4

Let's proceed to step 4:
The number 4 fits into 19 4 times, leaving a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 1284.0
Subtract 16 from 19 to get 3.
Take the next digit (4) from the dividend and append it to 3, then repeat: 34 / 4

On to step 5:
34 divided by 4 is 8 with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 12848.0
Deduct 32 from 34 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 6:
If we divide 20 by 4, we get 5 and a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 12848.5
Subtracting 20 from 20 leaves us 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.

On to step 7:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 12848.5
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.

On to step 8:
0 divided by 4 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 12848.5
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 quotient of the division is 12848.5, and the remainder is 0.0.