We divide 335978 by 31
Our goal is to divide 335978 by 31.

Let's proceed to step 1:
When dividing 3 by 31, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (3) from the dividend, attach it to 3 and continue: 33 / 31

Step 2:
The number 31 fits into 33 1 times, leaving a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 2 after subtracting 31 from 33.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 31

Let's proceed to step 3:
When dividing 25 by 31, we get 0 with a remainder of 25.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
If we subtract 0 from 25, we get 25.
Include the next digit (9) from the dividend after 25, then repeat: 259 / 31

Going ahead to step 4:
31 can be fit into 259 8 times, resulting in a remainder of 11.
Record the quotient 8 as the next digit in the result. 
Result so far: 108.0
Deduct 248 from 259 and we're left with 11.
Take the next digit (7) from the dividend and append it to 11, then repeat: 117 / 31

Step 5:
The number 31 fits into 117 3 times, leaving a remainder of 24.
Use 3 as the next digit of our solution. 
Result so far: 1083.0
If we subtract 93 from 117, we get 24.
Take the next digit (8) from the dividend and append it to 24, then repeat: 248 / 31

Advancing to step 6:
When dividing 248 by 31, we get 8 with a remainder of 0.
The next digit of our result is 8. 
Result so far: 10838.0
Subtract 248 from 248 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 7:
31 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10838.0
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 8:
If we divide 0 by 31, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 10838.0
Subtracting 0 from 0 leaves us 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.

Our division results in 10838.0 with a remaining 0.0.