We're dividing 317118 by 45 
Our goal is to divide 317118 by 45.

Step 1:
When dividing 3 by 45, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 45

Advancing to step 2:
45 goes into 31 0 times with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Include the next digit (7) from the dividend after 31, then repeat: 317 / 45

On to step 3:
If we divide 317 by 45, we get 7 and a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 7.0
Deduct 315 from 317 and we're left with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 45

Going ahead to step 4:
The number 45 fits into 21 0 times, leaving a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 70.0
The remainder is 21 after subtracting 0 from 21.
Grab the next digit (1) from the dividend, add it to 21, then carry on: 211 / 45

Let's proceed to step 5:
The number 45 fits into 211 4 times, leaving a remainder of 31.
Put 4 as the next digit of the answer. 
Result so far: 704.0
Deduct 180 from 211 and we're left with 31.
Include the next digit (8) from the dividend after 31, then repeat: 318 / 45

Advancing to step 6:
When dividing 318 by 45, we get 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 7047.0
The remainder is 3 after subtracting 315 from 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 7:
When dividing 30 by 45, we get 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 7047.0
If we subtract 0 from 30, we 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.

Step 8:
When dividing 300 by 45, we get 6 with a remainder of 30.
Put 6 as the next digit of the answer. 
Result so far: 7047.06
Deduct 270 from 300 and we're left with 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:
45 goes into 300 6 times with a remainder of 30.
Put 6 as the next digit of the answer. 
Result so far: 7047.066
If we take 270 away from 300, we end up with 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 7047.066, and the remainder is 0.003.