Let's divide 509957 by 36
Let's see how many times 36 fits into 509957.

Going ahead to step 1:
36 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
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 / 36

On to step 2:
If we divide 50 by 36, we get 1 and a remainder of 14.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 14 after subtracting 36 from 50.
Bring next digit (9) of the dividend behind the 14 and repeat the process: 149 / 36

Moving on to step 3:
36 goes into 149 4 times with a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 14.0
Subtracting 144 from 149 leaves us with 5.
Fetch the next digit (9) from the dividend, attach it to 5 and continue: 59 / 36

Going ahead to step 4:
36 can be fit into 59 1 times, resulting in a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 141.0
The remainder is 23 after subtracting 36 from 59.
Bring next digit (5) of the dividend behind the 23 and repeat the process: 235 / 36

Advancing to step 5:
If we divide 235 by 36, we get 6 and a remainder of 19.
Put 6 as the next digit of the answer. 
Result so far: 1416.0
Subtracting 216 from 235 leaves us with 19.
Append the next digit (7) from the dividend to 19 and continue with: 197 / 36

On to step 6:
When dividing 197 by 36, we get 5 with a remainder of 17.
The next digit of our result is 5. 
Result so far: 14165.0
Subtracting 180 from 197 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 7:
36 goes into 170 4 times with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 14165.4
If we take 144 away from 170, we end up with 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 8:
When dividing 260 by 36, we get 7 with a remainder of 8.
Put 7 as the next digit of the answer. 
Result so far: 14165.47
Deduct 252 from 260 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 9:
If we divide 80 by 36, we get 2 and a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 14165.472
If we take 72 away from 80, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 10:
When dividing 80 by 36, we get 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 14165.4722
Subtracting 72 from 80 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

After the division, we end up with 14165.4722 and a remainder of 8e-05.