We look at the division of 504581 by 38 
We want to divide 504581 by 38.

Let's proceed to step 1:
38 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 38

Advancing to step 2:
38 can be fit into 50 1 times, resulting in a remainder of 12.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 38 from 50, we get 12.
Grab the next digit (4) from the dividend, add it to 12, then carry on: 124 / 38

Moving on to step 3:
When dividing 124 by 38, we get 3 with a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 13.0
Deduct 114 from 124 and we're left with 10.
Bring next digit (5) of the dividend behind the 10 and repeat the process: 105 / 38

On to step 4:
When dividing 105 by 38, we get 2 with a remainder of 29.
The number 2 becomes the next digit in our result. 
Result so far: 132.0
Subtract 76 from 105 to get 29.
Include the next digit (8) from the dividend after 29, then repeat: 298 / 38

Moving on to step 5:
38 goes into 298 7 times with a remainder of 32.
Record the quotient 7 as the next digit in the result. 
Result so far: 1327.0
If we take 266 away from 298, we end up with 32.
Bring next digit (1) of the dividend behind the 32 and repeat the process: 321 / 38

Going ahead to step 6:
If we divide 321 by 38, we get 8 and a remainder of 17.
Use 8 as the next digit of our solution. 
Result so far: 13278.0
The remainder is 17 after subtracting 304 from 321.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 7:
If we divide 170 by 38, we get 4 and a remainder of 18.
Use 4 as the next digit of our solution. 
Result so far: 13278.4
Subtract 152 from 170 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 8:
When dividing 180 by 38, we get 4 with a remainder of 28.
Use 4 as the next digit of our solution. 
Result so far: 13278.44
If we take 152 away from 180, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

After the division, we end up with 13278.44 and a remainder of 0.028.