Let's divide 308504 by 31
Our goal is to divide 308504 by 31.

On to step 1:
When dividing 3 by 31, we get 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (0) from the dividend and append it to 3, then repeat: 30 / 31

Let's proceed to step 2:
If we divide 30 by 31, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 30, we end up with 30.
Append the next digit (8) from the dividend to 30 and continue with: 308 / 31

Let's proceed to step 3:
31 goes into 308 9 times with a remainder of 29.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we subtract 279 from 308, we get 29.
Append the next digit (5) from the dividend to 29 and continue with: 295 / 31

Going ahead to step 4:
31 can be fit into 295 9 times, resulting in a remainder of 16.
Record the quotient 9 as the next digit in the result. 
Result so far: 99.0
Subtracting 279 from 295 leaves us with 16.
Take the next digit (0) from the dividend and append it to 16, then repeat: 160 / 31

Advancing to step 5:
When dividing 160 by 31, we get 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 995.0
Subtracting 155 from 160 leaves us with 5.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 54 / 31

Moving on to step 6:
54 divided by 31 is 1 with a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 9951.0
Subtract 31 from 54 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 7:
If we divide 230 by 31, we get 7 and a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 9951.7
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Advancing to step 8:
31 goes into 130 4 times with a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 9951.74
Subtracting 124 from 130 leaves us 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.

Moving on to step 9:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Record the quotient 1 as the next digit in the result. 
Result so far: 9951.741
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 10:
If we divide 290 by 31, we get 9 and a remainder of 11.
The next digit of our result is 9. 
Result so far: 9951.7419
Deduct 279 from 290 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 11:
110 divided by 31 is 3 with a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 9951.74193
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 12:
The number 31 fits into 170 5 times, leaving a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 9951.741935
If we subtract 155 from 170, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 13:
When dividing 150 by 31, we get 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 9951.7419354
Subtracting 124 from 150 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 14:
260 divided by 31 is 8 with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 9951.74193548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Our division results in 9951.74193548 with a remaining 1.2e-08.