Let's divide 507851 by 23
We want to figure out the number of times 507851 can be divided by 23.

Step 1:
The number 23 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 23

On to step 2:
23 can be fit into 50 2 times, resulting in a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 46 from 50, we get 4.
Bring next digit (7) of the dividend behind the 4 and repeat the process: 47 / 23

On to step 3:
If we divide 47 by 23, we get 2 and a remainder of 1.
The next digit of our result is 2. 
Result so far: 22.0
The remainder is 1 after subtracting 46 from 47.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 23

On to step 4:
23 can be fit into 18 0 times, resulting in a remainder of 18.
The next digit of our result is 0. 
Result so far: 220.0
If we take 0 away from 18, we end up with 18.
Take the next digit (5) from the dividend and append it to 18, then repeat: 185 / 23

Advancing to step 5:
23 can be fit into 185 8 times, resulting in a remainder of 1.
The next digit of our result is 8. 
Result so far: 2208.0
The remainder is 1 after subtracting 184 from 185.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 23

Going ahead to step 6:
If we divide 11 by 23, we get 0 and a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 22080.0
The remainder is 11 after subtracting 0 from 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 7:
The number 23 fits into 110 4 times, leaving a remainder of 18.
Write down 4 as next digit of the result. 
Result so far: 22080.4
Deduct 92 from 110 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 8:
When dividing 180 by 23, we get 7 with a remainder of 19.
Put 7 as the next digit of the answer. 
Result so far: 22080.47
Subtract 161 from 180 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 9:
If we divide 190 by 23, we get 8 and a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 22080.478
If we subtract 184 from 190, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 10:
The number 23 fits into 60 2 times, leaving a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 22080.4782
Deduct 46 from 60 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 11:
23 goes into 140 6 times with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 22080.47826
Subtracting 138 from 140 leaves us 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.

Going ahead to step 12:
If we divide 20 by 23, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 22080.47826
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 13:
If we divide 200 by 23, we get 8 and a remainder of 16.
The next digit of our result is 8. 
Result so far: 22080.4782608
The remainder is 16 after subtracting 184 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 14:
23 can be fit into 160 6 times, resulting in a remainder of 22.
Use 6 as the next digit of our solution. 
Result so far: 22080.47826086
If we take 138 away from 160, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

The quotient of the division is 22080.47826086, and the remainder is 2.2e-08.