Let's divide 635836 by 40
We want to divide 635836 by 40.

Advancing to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Grab the next digit (3) from the dividend, add it to 6, then carry on: 63 / 40

Step 2:
When dividing 63 by 40, we get 1 with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 40 from 63 leaves us with 23.
Append the next digit (5) from the dividend to 23 and continue with: 235 / 40

Step 3:
If we divide 235 by 40, we get 5 and a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 15.0
If we subtract 200 from 235, we get 35.
Grab the next digit (8) from the dividend, add it to 35, then carry on: 358 / 40

Let's proceed to step 4:
40 goes into 358 8 times with a remainder of 38.
Record the quotient 8 as the next digit in the result. 
Result so far: 158.0
Subtracting 320 from 358 leaves us with 38.
Append the next digit (3) from the dividend to 38 and continue with: 383 / 40

Step 5:
383 divided by 40 is 9 with a remainder of 23.
The number 9 becomes the next digit in our result. 
Result so far: 1589.0
Deduct 360 from 383 and we're left with 23.
Grab the next digit (6) from the dividend, add it to 23, then carry on: 236 / 40

Let's proceed to step 6:
40 can be fit into 236 5 times, resulting in a remainder of 36.
The next digit of our result is 5. 
Result so far: 15895.0
Subtract 200 from 236 to 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.

Let's proceed to step 7:
360 divided by 40 is 9 with a remainder of 0.
Use 9 as the next digit of our solution. 
Result so far: 15895.9
Deduct 360 from 360 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 15895.9
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 15895.9
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 15895.9, with a leftover of 0.0.