We're dividing 31386678 by 336 
We want to divide 31386678 by 336.

On to step 1:
If we divide 3 by 336, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 336

On to step 2:
31 divided by 336 is 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Fetch the next digit (3) from the dividend, attach it to 31 and continue: 313 / 336

Moving on to step 3:
336 can be fit into 313 0 times, resulting in a remainder of 313.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 313 to get 313.
Append the next digit (8) from the dividend to 313 and continue with: 3138 / 336

Going ahead to step 4:
336 goes into 3138 9 times with a remainder of 114.
Put 9 as the next digit of the answer. 
Result so far: 9.0
If we take 3024 away from 3138, we end up with 114.
Bring next digit (6) of the dividend behind the 114 and repeat the process: 1146 / 336

Going ahead to step 5:
336 can be fit into 1146 3 times, resulting in a remainder of 138.
Write down 3 as next digit of the result. 
Result so far: 93.0
The remainder is 138 after subtracting 1008 from 1146.
Append the next digit (6) from the dividend to 138 and continue with: 1386 / 336

Advancing to step 6:
If we divide 1386 by 336, we get 4 and a remainder of 42.
The number 4 becomes the next digit in our result. 
Result so far: 934.0
Subtract 1344 from 1386 to get 42.
Fetch the next digit (7) from the dividend, attach it to 42 and continue: 427 / 336

Moving on to step 7:
427 divided by 336 is 1 with a remainder of 91.
The next digit of our result is 1. 
Result so far: 9341.0
Deduct 336 from 427 and we're left with 91.
Grab the next digit (8) from the dividend, add it to 91, then carry on: 918 / 336

Moving on to step 8:
The number 336 fits into 918 2 times, leaving a remainder of 246.
The number 2 becomes the next digit in our result. 
Result so far: 93412.0
If we subtract 672 from 918, we get 246.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2460, and continue the process.

On to step 9:
If we divide 2460 by 336, we get 7 and a remainder of 108.
Write down 7 as next digit of the result. 
Result so far: 93412.7
Deduct 2352 from 2460 and we're left with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Advancing to step 10:
336 can be fit into 1080 3 times, resulting in a remainder of 72.
Record the quotient 3 as the next digit in the result. 
Result so far: 93412.73
Deduct 1008 from 1080 and we're left with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Going ahead to step 11:
When dividing 720 by 336, we get 2 with a remainder of 48.
The number 2 becomes the next digit in our result. 
Result so far: 93412.732
If we take 672 away from 720, we end up with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Going ahead to step 12:
336 goes into 480 1 times with a remainder of 144.
Record the quotient 1 as the next digit in the result. 
Result so far: 93412.7321
If we subtract 336 from 480, we get 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

Step 13:
336 goes into 1440 4 times with a remainder of 96.
The next digit of our result is 4. 
Result so far: 93412.73214
Subtract 1344 from 1440 to get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

On to step 14:
960 divided by 336 is 2 with a remainder of 288.
Write down 2 as next digit of the result. 
Result so far: 93412.732142
If we take 672 away from 960, we end up with 288.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2880, and continue the process.

Moving on to step 15:
When dividing 2880 by 336, we get 8 with a remainder of 192.
The next digit of our result is 8. 
Result so far: 93412.7321428
Subtract 2688 from 2880 to get 192.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1920, and continue the process.

Step 16:
336 goes into 1920 5 times with a remainder of 240.
Write down 5 as next digit of the result. 
Result so far: 93412.73214285
Subtracting 1680 from 1920 leaves us with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

After the division, we end up with 93412.73214285 and a remainder of 2.4e-07.