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

Advancing to step 1:
When dividing 5 by 45, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 45

Moving on to step 2:
51 divided by 45 is 1 with a remainder of 6.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 6 after subtracting 45 from 51.
Grab the next digit (5) from the dividend, add it to 6, then carry on: 65 / 45

On to step 3:
If we divide 65 by 45, we get 1 and a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 11.0
If we take 45 away from 65, we end up with 20.
Include the next digit (3) from the dividend after 20, then repeat: 203 / 45

On to step 4:
45 can be fit into 203 4 times, resulting in a remainder of 23.
Use 4 as the next digit of our solution. 
Result so far: 114.0
Deduct 180 from 203 and we're left with 23.
Include the next digit (7) from the dividend after 23, then repeat: 237 / 45

On to step 5:
If we divide 237 by 45, we get 5 and a remainder of 12.
Record the quotient 5 as the next digit in the result. 
Result so far: 1145.0
If we take 225 away from 237, we end up with 12.
Include the next digit (1) from the dividend after 12, then repeat: 121 / 45

Going ahead to step 6:
45 goes into 121 2 times with a remainder of 31.
Write down 2 as next digit of the result. 
Result so far: 11452.0
If we take 90 away from 121, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 7:
When dividing 310 by 45, we get 6 with a remainder of 40.
Use 6 as the next digit of our solution. 
Result so far: 11452.6
Deduct 270 from 310 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 8:
45 goes into 400 8 times with a remainder of 40.
The number 8 becomes the next digit in our result. 
Result so far: 11452.68
If we subtract 360 from 400, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 9:
400 divided by 45 is 8 with a remainder of 40.
The next digit of our result is 8. 
Result so far: 11452.688
The remainder is 40 after subtracting 360 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

The final result is 11452.688 with a remainder of 0.004.