We divide 397356 by 45
Let's see how many times 45 fits into 397356.

Let's proceed to step 1:
When dividing 3 by 45, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 45

Advancing to step 2:
The number 45 fits into 39 0 times, leaving a remainder of 39.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Grab the next digit (7) from the dividend, add it to 39, then carry on: 397 / 45

Advancing to step 3:
45 goes into 397 8 times with a remainder of 37.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Deduct 360 from 397 and we're left with 37.
Append the next digit (3) from the dividend to 37 and continue with: 373 / 45

Step 4:
If we divide 373 by 45, we get 8 and a remainder of 13.
The number 8 becomes the next digit in our result. 
Result so far: 88.0
The remainder is 13 after subtracting 360 from 373.
Bring next digit (5) of the dividend behind the 13 and repeat the process: 135 / 45

Moving on to step 5:
135 divided by 45 is 3 with a remainder of 0.
The next digit of our result is 3. 
Result so far: 883.0
The remainder is 0 after subtracting 135 from 135.
Grab the next digit (6) from the dividend, add it to 0, then carry on: 6 / 45

Moving on to step 6:
45 goes into 6 0 times with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 8830.0
If we subtract 0 from 6, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
When dividing 60 by 45, we get 1 with a remainder of 15.
Use 1 as the next digit of our solution. 
Result so far: 8830.1
Subtracting 45 from 60 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 8:
When dividing 150 by 45, we get 3 with a remainder of 15.
Put 3 as the next digit of the answer. 
Result so far: 8830.13
If we take 135 away from 150, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 9:
45 goes into 150 3 times with a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 8830.133
If we subtract 135 from 150, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

After the division, we end up with 8830.133 and a remainder of 0.0015.