18151887 divided by 797 
Let's see how many times 797 fits into 18151887.

Let's proceed to step 1:
797 can be fit into 1 0 times, resulting in a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 797

Let's proceed to step 2:
797 can be fit into 18 0 times, resulting in a remainder of 18.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 18 after subtracting 0 from 18.
Append the next digit (1) from the dividend to 18 and continue with: 181 / 797

On to step 3:
797 can be fit into 181 0 times, resulting in a remainder of 181.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 181, we end up with 181.
Fetch the next digit (5) from the dividend, attach it to 181 and continue: 1815 / 797

On to step 4:
If we divide 1815 by 797, we get 2 and a remainder of 221.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 221 after subtracting 1594 from 1815.
Append the next digit (1) from the dividend to 221 and continue with: 2211 / 797

On to step 5:
797 goes into 2211 2 times with a remainder of 617.
The next digit of our result is 2. 
Result so far: 22.0
Deduct 1594 from 2211 and we're left with 617.
Take the next digit (8) from the dividend and append it to 617, then repeat: 6178 / 797

On to step 6:
If we divide 6178 by 797, we get 7 and a remainder of 599.
Record the quotient 7 as the next digit in the result. 
Result so far: 227.0
Subtract 5579 from 6178 to get 599.
Fetch the next digit (8) from the dividend, attach it to 599 and continue: 5998 / 797

Step 7:
If we divide 5998 by 797, we get 7 and a remainder of 419.
The number 7 becomes the next digit in our result. 
Result so far: 2277.0
The remainder is 419 after subtracting 5579 from 5998.
Fetch the next digit (7) from the dividend, attach it to 419 and continue: 4197 / 797

Let's proceed to step 8:
The number 797 fits into 4197 5 times, leaving a remainder of 212.
The number 5 becomes the next digit in our result. 
Result so far: 22775.0
Subtract 3985 from 4197 to get 212.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2120, and continue the process.

Going ahead to step 9:
2120 divided by 797 is 2 with a remainder of 526.
Put 2 as the next digit of the answer. 
Result so far: 22775.2
Subtract 1594 from 2120 to get 526.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5260, and continue the process.

Advancing to step 10:
When dividing 5260 by 797, we get 6 with a remainder of 478.
Write down 6 as next digit of the result. 
Result so far: 22775.26
If we subtract 4782 from 5260, we get 478.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4780, and continue the process.

Let's proceed to step 11:
If we divide 4780 by 797, we get 5 and a remainder of 795.
Record the quotient 5 as the next digit in the result. 
Result so far: 22775.265
The remainder is 795 after subtracting 3985 from 4780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7950, and continue the process.

Step 12:
797 goes into 7950 9 times with a remainder of 777.
Write down 9 as next digit of the result. 
Result so far: 22775.2659
Subtract 7173 from 7950 to get 777.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7770, and continue the process.

On to step 13:
797 goes into 7770 9 times with a remainder of 597.
Write down 9 as next digit of the result. 
Result so far: 22775.26599
If we take 7173 away from 7770, we end up with 597.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5970, and continue the process.

After the division, we end up with 22775.26599 and a remainder of 0.000597.