We're dividing 31151418 by 796 
We want to figure out the number of times 31151418 can be divided by 796.

Going ahead to step 1:
The number 796 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 796

Step 2:
31 divided by 796 is 0 with a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Take the next digit (1) from the dividend and append it to 31, then repeat: 311 / 796

Advancing to step 3:
When dividing 311 by 796, we get 0 with a remainder of 311.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 311 to get 311.
Fetch the next digit (5) from the dividend, attach it to 311 and continue: 3115 / 796

Advancing to step 4:
When dividing 3115 by 796, we get 3 with a remainder of 727.
The next digit of our result is 3. 
Result so far: 3.0
If we take 2388 away from 3115, we end up with 727.
Include the next digit (1) from the dividend after 727, then repeat: 7271 / 796

Step 5:
7271 divided by 796 is 9 with a remainder of 107.
The next digit of our result is 9. 
Result so far: 39.0
Subtracting 7164 from 7271 leaves us with 107.
Append the next digit (4) from the dividend to 107 and continue with: 1074 / 796

Going ahead to step 6:
The number 796 fits into 1074 1 times, leaving a remainder of 278.
The number 1 becomes the next digit in our result. 
Result so far: 391.0
Deduct 796 from 1074 and we're left with 278.
Take the next digit (1) from the dividend and append it to 278, then repeat: 2781 / 796

Going ahead to step 7:
2781 divided by 796 is 3 with a remainder of 393.
Use 3 as the next digit of our solution. 
Result so far: 3913.0
Subtracting 2388 from 2781 leaves us with 393.
Take the next digit (8) from the dividend and append it to 393, then repeat: 3938 / 796

Moving on to step 8:
796 goes into 3938 4 times with a remainder of 754.
Put 4 as the next digit of the answer. 
Result so far: 39134.0
Deduct 3184 from 3938 and we're left with 754.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7540, and continue the process.

On to step 9:
7540 divided by 796 is 9 with a remainder of 376.
Write down 9 as next digit of the result. 
Result so far: 39134.9
Subtracting 7164 from 7540 leaves us with 376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

Let's proceed to step 10:
796 goes into 3760 4 times with a remainder of 576.
Write down 4 as next digit of the result. 
Result so far: 39134.94
The remainder is 576 after subtracting 3184 from 3760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5760, and continue the process.

On to step 11:
If we divide 5760 by 796, we get 7 and a remainder of 188.
The next digit of our result is 7. 
Result so far: 39134.947
The remainder is 188 after subtracting 5572 from 5760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1880, and continue the process.

Step 12:
The number 796 fits into 1880 2 times, leaving a remainder of 288.
Use 2 as the next digit of our solution. 
Result so far: 39134.9472
Subtracting 1592 from 1880 leaves us 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.

Let's proceed to step 13:
796 can be fit into 2880 3 times, resulting in a remainder of 492.
Use 3 as the next digit of our solution. 
Result so far: 39134.94723
Deduct 2388 from 2880 and we're left with 492.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4920, and continue the process.

Advancing to step 14:
If we divide 4920 by 796, we get 6 and a remainder of 144.
Put 6 as the next digit of the answer. 
Result so far: 39134.947236
If we subtract 4776 from 4920, 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.

Let's proceed to step 15:
796 can be fit into 1440 1 times, resulting in a remainder of 644.
Record the quotient 1 as the next digit in the result. 
Result so far: 39134.9472361
The remainder is 644 after subtracting 796 from 1440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6440, and continue the process.

Step 16:
The number 796 fits into 6440 8 times, leaving a remainder of 72.
Write down 8 as next digit of the result. 
Result so far: 39134.94723618
Deduct 6368 from 6440 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.

The final result is 39134.94723618 with a remainder of 7.2e-08.