We divide 505478 by 31
We're looking to find how many times 31 goes into 505478.

Step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 31

Moving on to step 2:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 31 from 50, we get 19.
Take the next digit (5) from the dividend and append it to 19, then repeat: 195 / 31

Going ahead to step 3:
If we divide 195 by 31, we get 6 and a remainder of 9.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we subtract 186 from 195, we get 9.
Bring next digit (4) of the dividend behind the 9 and repeat the process: 94 / 31

Moving on to step 4:
94 divided by 31 is 3 with a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 163.0
If we subtract 93 from 94, we get 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 31

Moving on to step 5:
When dividing 17 by 31, we get 0 with a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 1630.0
Deduct 0 from 17 and we're left with 17.
Append the next digit (8) from the dividend to 17 and continue with: 178 / 31

Step 6:
31 can be fit into 178 5 times, resulting in a remainder of 23.
Put 5 as the next digit of the answer. 
Result so far: 16305.0
If we subtract 155 from 178, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 7:
230 divided by 31 is 7 with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 16305.7
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 8:
31 can be fit into 130 4 times, resulting in a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 16305.74
If we subtract 124 from 130, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 9:
When dividing 60 by 31, we get 1 with a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 16305.741
Subtracting 31 from 60 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 10:
The number 31 fits into 290 9 times, leaving a remainder of 11.
The next digit of our result is 9. 
Result so far: 16305.7419
The remainder is 11 after subtracting 279 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 11:
31 goes into 110 3 times with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 16305.74193
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 12:
31 goes into 170 5 times with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 16305.741935
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 13:
If we divide 150 by 31, we get 4 and a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 16305.7419354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 14:
When dividing 260 by 31, we get 8 with a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 16305.74193548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Our division results in 16305.74193548 with a remaining 1.2e-08.