We divide 50790 by 8
Let's see how many times 8 fits into 50790.

On to step 1:
5 divided by 8 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 8

On to step 2:
8 can be fit into 50 6 times, resulting in a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
The remainder is 2 after subtracting 48 from 50.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 8

Step 3:
8 goes into 27 3 times with a remainder of 3.
The next digit of our result is 3. 
Result so far: 63.0
The remainder is 3 after subtracting 24 from 27.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 8

Going ahead to step 4:
39 divided by 8 is 4 with a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 634.0
Subtract 32 from 39 to get 7.
Bring next digit (0) of the dividend behind the 7 and repeat the process: 70 / 8

Going ahead to step 5:
When dividing 70 by 8, we get 8 with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 6348.0
If we take 64 away from 70, we end up 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.

Step 6:
8 can be fit into 60 7 times, resulting in a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 6348.7
Subtracting 56 from 60 leaves us 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.

Step 7:
When dividing 40 by 8, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 6348.75
Subtracting 40 from 40 leaves us 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.

Going ahead to step 8:
0 divided by 8 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 6348.75
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.

On to step 9:
8 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 6348.75
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.

The quotient of the division is 6348.75, and the remainder is 0.0.