We're dividing 504566 by 38 
Let's see how many times 38 fits into 504566.

Let's proceed to step 1:
38 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 38

Advancing to step 2:
38 goes into 50 1 times with a remainder of 12.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 12 after subtracting 38 from 50.
Bring next digit (4) of the dividend behind the 12 and repeat the process: 124 / 38

Advancing to step 3:
If we divide 124 by 38, we get 3 and a remainder of 10.
Write down 3 as next digit of the result. 
Result so far: 13.0
Subtracting 114 from 124 leaves us with 10.
Fetch the next digit (5) from the dividend, attach it to 10 and continue: 105 / 38

Advancing to step 4:
105 divided by 38 is 2 with a remainder of 29.
The number 2 becomes the next digit in our result. 
Result so far: 132.0
If we take 76 away from 105, we end up with 29.
Take the next digit (6) from the dividend and append it to 29, then repeat: 296 / 38

Moving on to step 5:
The number 38 fits into 296 7 times, leaving a remainder of 30.
The number 7 becomes the next digit in our result. 
Result so far: 1327.0
Subtract 266 from 296 to get 30.
Grab the next digit (6) from the dividend, add it to 30, then carry on: 306 / 38

Going ahead to step 6:
If we divide 306 by 38, we get 8 and a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 13278.0
The remainder is 2 after subtracting 304 from 306.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
38 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 13278.0
If we take 0 away from 20, we end up 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.

On to step 8:
If we divide 200 by 38, we get 5 and a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 13278.05
Subtract 190 from 200 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 9:
38 goes into 100 2 times with a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 13278.052
If we subtract 76 from 100, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 10:
38 goes into 240 6 times with a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 13278.0526
Deduct 228 from 240 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 11:
The number 38 fits into 120 3 times, leaving a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 13278.05263
Subtract 114 from 120 to 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 12:
38 can be fit into 60 1 times, resulting in a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 13278.052631
Subtract 38 from 60 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 13:
220 divided by 38 is 5 with a remainder of 30.
Record the quotient 5 as the next digit in the result. 
Result so far: 13278.0526315
Subtract 190 from 220 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 14:
300 divided by 38 is 7 with a remainder of 34.
Put 7 as the next digit of the answer. 
Result so far: 13278.05263157
The remainder is 34 after subtracting 266 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

After the division, we end up with 13278.05263157 and a remainder of 3.4e-08.