Let's divide 311704 by 45
We're looking to find how many times 45 goes into 311704.

On to step 1:
If we divide 3 by 45, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 45

On to step 2:
When dividing 31 by 45, we get 0 with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Append the next digit (1) from the dividend to 31 and continue with: 311 / 45

Going ahead to step 3:
The number 45 fits into 311 6 times, leaving a remainder of 41.
The next digit of our result is 6. 
Result so far: 6.0
The remainder is 41 after subtracting 270 from 311.
Take the next digit (7) from the dividend and append it to 41, then repeat: 417 / 45

Advancing to step 4:
When dividing 417 by 45, we get 9 with a remainder of 12.
The next digit of our result is 9. 
Result so far: 69.0
Subtract 405 from 417 to get 12.
Bring next digit (0) of the dividend behind the 12 and repeat the process: 120 / 45

Advancing to step 5:
If we divide 120 by 45, we get 2 and a remainder of 30.
Write down 2 as next digit of the result. 
Result so far: 692.0
The remainder is 30 after subtracting 90 from 120.
Grab the next digit (4) from the dividend, add it to 30, then carry on: 304 / 45

Step 6:
45 goes into 304 6 times with a remainder of 34.
Use 6 as the next digit of our solution. 
Result so far: 6926.0
If we take 270 away from 304, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 7:
If we divide 340 by 45, we get 7 and a remainder of 25.
The next digit of our result is 7. 
Result so far: 6926.7
If we subtract 315 from 340, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
250 divided by 45 is 5 with a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 6926.75
If we take 225 away from 250, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 9:
If we divide 250 by 45, we get 5 and a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 6926.755
Subtracting 225 from 250 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

After the division, we end up with 6926.755 and a remainder of 0.0025.