We look at the division of 51816171 by 7 
We want to divide 51816171 by 7.

Let's proceed to step 1:
If we divide 5 by 7, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 7

Advancing to step 2:
7 goes into 51 7 times with a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 7.0
Deduct 49 from 51 and we're left with 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 7

Advancing to step 3:
7 goes into 28 4 times with a remainder of 0.
The next digit of our result is 4. 
Result so far: 74.0
Subtracting 28 from 28 leaves us with 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 7

On to step 4:
7 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 740.0
The remainder is 1 after subtracting 0 from 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 7

Step 5:
16 divided by 7 is 2 with a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 7402.0
If we take 14 away from 16, we end up with 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 7

Going ahead to step 6:
When dividing 21 by 7, we get 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 74023.0
The remainder is 0 after subtracting 21 from 21.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 7

On to step 7:
When dividing 7 by 7, we get 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 740231.0
If we take 7 away from 7, we end up with 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 7

On to step 8:
The number 7 fits into 1 0 times, leaving a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 7402310.0
Subtracting 0 from 1 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 9:
When dividing 10 by 7, we get 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 7402310.1
If we subtract 7 from 10, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 10:
30 divided by 7 is 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 7402310.14
If we take 28 away from 30, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 11:
7 goes into 20 2 times with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 7402310.142
Deduct 14 from 20 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 12:
The number 7 fits into 60 8 times, leaving a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 7402310.1428
If we subtract 56 from 60, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 13:
The number 7 fits into 40 5 times, leaving a remainder of 5.
The next digit of our result is 5. 
Result so far: 7402310.14285
If we take 35 away from 40, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 14:
7 goes into 50 7 times with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 7402310.142857
Subtracting 49 from 50 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 15:
If we divide 10 by 7, we get 1 and a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 7402310.1428571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 16:
When dividing 30 by 7, we get 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 7402310.14285714
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final outcome is 7402310.14285714, with a leftover of 2e-09.