Let's divide 401079 by 45
Our goal is to divide 401079 by 45.

Step 1:
If we divide 4 by 45, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 45

Going ahead to step 2:
45 can be fit into 40 0 times, resulting in a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Take the next digit (1) from the dividend and append it to 40, then repeat: 401 / 45

Moving on to step 3:
If we divide 401 by 45, we get 8 and a remainder of 41.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Subtracting 360 from 401 leaves us with 41.
Append the next digit (0) from the dividend to 41 and continue with: 410 / 45

Step 4:
45 can be fit into 410 9 times, resulting in a remainder of 5.
The next digit of our result is 9. 
Result so far: 89.0
Subtract 405 from 410 to get 5.
Grab the next digit (7) from the dividend, add it to 5, then carry on: 57 / 45

Let's proceed to step 5:
The number 45 fits into 57 1 times, leaving a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 891.0
If we subtract 45 from 57, we get 12.
Fetch the next digit (9) from the dividend, attach it to 12 and continue: 129 / 45

Let's proceed to step 6:
45 goes into 129 2 times with a remainder of 39.
Write down 2 as next digit of the result. 
Result so far: 8912.0
The remainder is 39 after subtracting 90 from 129.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Advancing to step 7:
390 divided by 45 is 8 with a remainder of 30.
Write down 8 as next digit of the result. 
Result so far: 8912.8
The remainder is 30 after subtracting 360 from 390.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
45 can be fit into 300 6 times, resulting in a remainder of 30.
The number 6 becomes the next digit in our result. 
Result so far: 8912.86
Subtract 270 from 300 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 9:
300 divided by 45 is 6 with a remainder of 30.
Use 6 as the next digit of our solution. 
Result so far: 8912.866
Subtract 270 from 300 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

The quotient of the division is 8912.866, and the remainder is 0.003.