Let's divide 299257 by 8
We're looking to find how many times 8 goes into 299257.

Step 1:
The number 8 fits into 2 0 times, leaving a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 8

Moving on to step 2:
29 divided by 8 is 3 with a remainder of 5.
Write down 3 as next digit of the result. 
Result so far: 3.0
Deduct 24 from 29 and we're left with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 8

On to step 3:
The number 8 fits into 59 7 times, leaving a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 37.0
The remainder is 3 after subtracting 56 from 59.
Take the next digit (2) from the dividend and append it to 3, then repeat: 32 / 8

Advancing to step 4:
When dividing 32 by 8, we get 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 374.0
Subtracting 32 from 32 leaves us with 0.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 8

Let's proceed to step 5:
8 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 3740.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 8

Let's proceed to step 6:
The number 8 fits into 57 7 times, leaving a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 37407.0
The remainder is 1 after subtracting 56 from 57.
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 7:
10 divided by 8 is 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 37407.1
If we take 8 away from 10, 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.

Advancing to step 8:
8 goes into 20 2 times with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 37407.12
Deduct 16 from 20 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
When dividing 40 by 8, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 37407.125
If we take 40 away from 40, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 10:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 37407.125
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 11:
When dividing 0 by 8, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 37407.125
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 37407.125 with a remaining 0.0.