We're dividing 505140 by 90 
We want to figure out the number of times 505140 can be divided by 90.

Step 1:
5 divided by 90 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 90

Going ahead to step 2:
90 can be fit into 50 0 times, resulting in a remainder of 50.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Bring next digit (5) of the dividend behind the 50 and repeat the process: 505 / 90

Let's proceed to step 3:
When dividing 505 by 90, we get 5 with a remainder of 55.
The next digit of our result is 5. 
Result so far: 5.0
The remainder is 55 after subtracting 450 from 505.
Include the next digit (1) from the dividend after 55, then repeat: 551 / 90

On to step 4:
551 divided by 90 is 6 with a remainder of 11.
Write down 6 as next digit of the result. 
Result so far: 56.0
The remainder is 11 after subtracting 540 from 551.
Grab the next digit (4) from the dividend, add it to 11, then carry on: 114 / 90

Going ahead to step 5:
90 can be fit into 114 1 times, resulting in a remainder of 24.
Use 1 as the next digit of our solution. 
Result so far: 561.0
Deduct 90 from 114 and we're left with 24.
Append the next digit (0) from the dividend to 24 and continue with: 240 / 90

Going ahead to step 6:
The number 90 fits into 240 2 times, leaving a remainder of 60.
Write down 2 as next digit of the result. 
Result so far: 5612.0
If we take 180 away from 240, we end up with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Going ahead to step 7:
600 divided by 90 is 6 with a remainder of 60.
Write down 6 as next digit of the result. 
Result so far: 5612.6
The remainder is 60 after subtracting 540 from 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Moving on to step 8:
90 can be fit into 600 6 times, resulting in a remainder of 60.
Put 6 as the next digit of the answer. 
Result so far: 5612.66
If we take 540 away from 600, we end up with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

After the division, we end up with 5612.66 and a remainder of 0.06.