We're dividing 505781 by 38 
We're looking to find how many times 38 goes into 505781.

On to step 1:
5 divided by 38 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 38

Going ahead to step 2:
38 can be fit into 50 1 times, resulting in a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 38 from 50 leaves us with 12.
Include the next digit (5) from the dividend after 12, then repeat: 125 / 38

On to step 3:
If we divide 125 by 38, we get 3 and a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
Deduct 114 from 125 and we're left with 11.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 38

Advancing to step 4:
When dividing 117 by 38, we get 3 with a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 133.0
Subtract 114 from 117 to get 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 38

Moving on to step 5:
38 can be fit into 38 1 times, resulting in a remainder of 0.
The next digit of our result is 1. 
Result so far: 1331.0
If we subtract 38 from 38, we get 0.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 38

Advancing to step 6:
38 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 13310.0
The remainder is 1 after subtracting 0 from 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
When dividing 10 by 38, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 13310.0
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
If we divide 100 by 38, we get 2 and a remainder of 24.
Write down 2 as next digit of the result. 
Result so far: 13310.02
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.

Advancing to step 9:
The number 38 fits into 240 6 times, leaving a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 13310.026
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.

Let's proceed to step 10:
If we divide 120 by 38, we get 3 and a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 13310.0263
If we subtract 114 from 120, 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.

Let's proceed to step 11:
60 divided by 38 is 1 with a remainder of 22.
The number 1 becomes the next digit in our result. 
Result so far: 13310.02631
Deduct 38 from 60 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 12:
If we divide 220 by 38, we get 5 and a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 13310.026315
The remainder is 30 after subtracting 190 from 220.
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 13:
When dividing 300 by 38, we get 7 with a remainder of 34.
Record the quotient 7 as the next digit in the result. 
Result so far: 13310.0263157
If we subtract 266 from 300, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 14:
38 can be fit into 340 8 times, resulting in a remainder of 36.
Write down 8 as next digit of the result. 
Result so far: 13310.02631578
If we subtract 304 from 340, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Our division results in 13310.02631578 with a remaining 3.6e-08.