We divide 512111 by 45
We want to figure out the number of times 512111 can be divided by 45.

On to step 1:
If we divide 5 by 45, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 45

Moving on to step 2:
If we divide 51 by 45, we get 1 and a remainder of 6.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 45 from 51 leaves us with 6.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 45

Advancing to step 3:
When dividing 62 by 45, we get 1 with a remainder of 17.
The next digit of our result is 1. 
Result so far: 11.0
Deduct 45 from 62 and we're left with 17.
Append the next digit (1) from the dividend to 17 and continue with: 171 / 45

Going ahead to step 4:
45 goes into 171 3 times with a remainder of 36.
The next digit of our result is 3. 
Result so far: 113.0
If we subtract 135 from 171, we get 36.
Grab the next digit (1) from the dividend, add it to 36, then carry on: 361 / 45

Going ahead to step 5:
45 can be fit into 361 8 times, resulting in a remainder of 1.
Record the quotient 8 as the next digit in the result. 
Result so far: 1138.0
If we subtract 360 from 361, we get 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 45

Step 6:
The number 45 fits into 11 0 times, leaving a remainder of 11.
Put 0 as the next digit of the answer. 
Result so far: 11380.0
Subtract 0 from 11 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
When dividing 110 by 45, we get 2 with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 11380.2
Subtracting 90 from 110 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 8:
If we divide 200 by 45, we get 4 and a remainder of 20.
Use 4 as the next digit of our solution. 
Result so far: 11380.24
The remainder is 20 after subtracting 180 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
When dividing 200 by 45, we get 4 with a remainder of 20.
Put 4 as the next digit of the answer. 
Result so far: 11380.244
Deduct 180 from 200 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The quotient of the division is 11380.244, and the remainder is 0.002.