We're dividing 297031 by 77 
Let's see how many times 77 fits into 297031.

On to step 1:
2 divided by 77 is 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 77

Step 2:
29 divided by 77 is 0 with a remainder of 29.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 29 leaves us with 29.
Append the next digit (7) from the dividend to 29 and continue with: 297 / 77

Let's proceed to step 3:
297 divided by 77 is 3 with a remainder of 66.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 231 from 297, we get 66.
Take the next digit (0) from the dividend and append it to 66, then repeat: 660 / 77

Advancing to step 4:
77 goes into 660 8 times with a remainder of 44.
Use 8 as the next digit of our solution. 
Result so far: 38.0
The remainder is 44 after subtracting 616 from 660.
Take the next digit (3) from the dividend and append it to 44, then repeat: 443 / 77

Advancing to step 5:
The number 77 fits into 443 5 times, leaving a remainder of 58.
Record the quotient 5 as the next digit in the result. 
Result so far: 385.0
The remainder is 58 after subtracting 385 from 443.
Grab the next digit (1) from the dividend, add it to 58, then carry on: 581 / 77

Step 6:
77 goes into 581 7 times with a remainder of 42.
Record the quotient 7 as the next digit in the result. 
Result so far: 3857.0
The remainder is 42 after subtracting 539 from 581.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Going ahead to step 7:
420 divided by 77 is 5 with a remainder of 35.
The next digit of our result is 5. 
Result so far: 3857.5
Deduct 385 from 420 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 8:
77 goes into 350 4 times with a remainder of 42.
The next digit of our result is 4. 
Result so far: 3857.54
The remainder is 42 after subtracting 308 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

On to step 9:
420 divided by 77 is 5 with a remainder of 35.
The next digit of our result is 5. 
Result so far: 3857.545
Deduct 385 from 420 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 10:
77 goes into 350 4 times with a remainder of 42.
Write down 4 as next digit of the result. 
Result so far: 3857.5454
Subtracting 308 from 350 leaves us with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Step 11:
If we divide 420 by 77, we get 5 and a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 3857.54545
If we take 385 away from 420, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 12:
When dividing 350 by 77, we get 4 with a remainder of 42.
Write down 4 as next digit of the result. 
Result so far: 3857.545454
If we take 308 away from 350, we end up with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Advancing to step 13:
When dividing 420 by 77, we get 5 with a remainder of 35.
Use 5 as the next digit of our solution. 
Result so far: 3857.5454545
Deduct 385 from 420 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 14:
77 goes into 350 4 times with a remainder of 42.
Put 4 as the next digit of the answer. 
Result so far: 3857.54545454
If we subtract 308 from 350, we get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

After the division, we end up with 3857.54545454 and a remainder of 4.2e-08.