Let's divide 40059 by 16
We want to divide 40059 by 16.

Advancing to step 1:
The number 16 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 16

Moving on to step 2:
If we divide 40 by 16, we get 2 and a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 32 from 40 leaves us with 8.
Append the next digit (0) from the dividend to 8 and continue with: 80 / 16

Step 3:
If we divide 80 by 16, we get 5 and a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 25.0
Deduct 80 from 80 and we're left with 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 16

Advancing to step 4:
If we divide 5 by 16, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 250.0
If we take 0 away from 5, we end up with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 16

Step 5:
59 divided by 16 is 3 with a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 2503.0
If we take 48 away from 59, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 6:
When dividing 110 by 16, we get 6 with a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 2503.6
If we take 96 away from 110, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 7:
If we divide 140 by 16, we get 8 and a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 2503.68
The remainder is 12 after subtracting 128 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 8:
If we divide 120 by 16, we get 7 and a remainder of 8.
Write down 7 as next digit of the result. 
Result so far: 2503.687
The remainder is 8 after subtracting 112 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 9:
16 goes into 80 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 2503.6875
Deduct 80 from 80 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 10:
If we divide 0 by 16, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 2503.6875
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.

Going ahead to step 11:
0 divided by 16 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 2503.6875
Subtracting 0 from 0 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.

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