We look at the division of 9004876 by 997 
Our goal is to divide 9004876 by 997.

Moving on to step 1:
The number 997 fits into 9 0 times, leaving a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Fetch the next digit (0) from the dividend, attach it to 9 and continue: 90 / 997

Moving on to step 2:
The number 997 fits into 90 0 times, leaving a remainder of 90.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 90 leaves us with 90.
Take the next digit (0) from the dividend and append it to 90, then repeat: 900 / 997

Going ahead to step 3:
When dividing 900 by 997, we get 0 with a remainder of 900.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 900 after subtracting 0 from 900.
Append the next digit (4) from the dividend to 900 and continue with: 9004 / 997

Going ahead to step 4:
The number 997 fits into 9004 9 times, leaving a remainder of 31.
Use 9 as the next digit of our solution. 
Result so far: 9.0
The remainder is 31 after subtracting 8973 from 9004.
Include the next digit (8) from the dividend after 31, then repeat: 318 / 997

Step 5:
997 can be fit into 318 0 times, resulting in a remainder of 318.
Record the quotient 0 as the next digit in the result. 
Result so far: 90.0
Subtract 0 from 318 to get 318.
Bring next digit (7) of the dividend behind the 318 and repeat the process: 3187 / 997

On to step 6:
997 goes into 3187 3 times with a remainder of 196.
Write down 3 as next digit of the result. 
Result so far: 903.0
Deduct 2991 from 3187 and we're left with 196.
Take the next digit (6) from the dividend and append it to 196, then repeat: 1966 / 997

Step 7:
If we divide 1966 by 997, we get 1 and a remainder of 969.
Record the quotient 1 as the next digit in the result. 
Result so far: 9031.0
The remainder is 969 after subtracting 997 from 1966.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9690, and continue the process.

Moving on to step 8:
997 can be fit into 9690 9 times, resulting in a remainder of 717.
Use 9 as the next digit of our solution. 
Result so far: 9031.9
The remainder is 717 after subtracting 8973 from 9690.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7170, and continue the process.

Step 9:
When dividing 7170 by 997, we get 7 with a remainder of 191.
Put 7 as the next digit of the answer. 
Result so far: 9031.97
Subtract 6979 from 7170 to get 191.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1910, and continue the process.

Step 10:
997 goes into 1910 1 times with a remainder of 913.
The number 1 becomes the next digit in our result. 
Result so far: 9031.971
Subtracting 997 from 1910 leaves us with 913.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9130, and continue the process.

On to step 11:
997 goes into 9130 9 times with a remainder of 157.
Use 9 as the next digit of our solution. 
Result so far: 9031.9719
Deduct 8973 from 9130 and we're left with 157.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1570, and continue the process.

On to step 12:
When dividing 1570 by 997, we get 1 with a remainder of 573.
Write down 1 as next digit of the result. 
Result so far: 9031.97191
Deduct 997 from 1570 and we're left with 573.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5730, and continue the process.

Advancing to step 13:
997 can be fit into 5730 5 times, resulting in a remainder of 745.
The next digit of our result is 5. 
Result so far: 9031.971915
If we take 4985 away from 5730, we end up with 745.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7450, and continue the process.

On to step 14:
When dividing 7450 by 997, we get 7 with a remainder of 471.
Write down 7 as next digit of the result. 
Result so far: 9031.9719157
Subtracting 6979 from 7450 leaves us with 471.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4710, and continue the process.

Step 15:
If we divide 4710 by 997, we get 4 and a remainder of 722.
Put 4 as the next digit of the answer. 
Result so far: 9031.97191574
Subtracting 3988 from 4710 leaves us with 722.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7220, and continue the process.

The quotient of the division is 9031.97191574, and the remainder is 7.22e-07.