31221021 divided by 508 
Let's see how many times 508 fits into 31221021.

Let's proceed to step 1:
If we divide 3 by 508, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 508

Let's proceed to step 2:
When dividing 31 by 508, we get 0 with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Include the next digit (2) from the dividend after 31, then repeat: 312 / 508

Going ahead to step 3:
508 goes into 312 0 times with a remainder of 312.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 312 after subtracting 0 from 312.
Fetch the next digit (2) from the dividend, attach it to 312 and continue: 3122 / 508

Moving on to step 4:
When dividing 3122 by 508, we get 6 with a remainder of 74.
The next digit of our result is 6. 
Result so far: 6.0
Deduct 3048 from 3122 and we're left with 74.
Append the next digit (1) from the dividend to 74 and continue with: 741 / 508

Let's proceed to step 5:
When dividing 741 by 508, we get 1 with a remainder of 233.
The number 1 becomes the next digit in our result. 
Result so far: 61.0
If we take 508 away from 741, we end up with 233.
Bring next digit (0) of the dividend behind the 233 and repeat the process: 2330 / 508

Let's proceed to step 6:
When dividing 2330 by 508, we get 4 with a remainder of 298.
Put 4 as the next digit of the answer. 
Result so far: 614.0
Subtracting 2032 from 2330 leaves us with 298.
Take the next digit (2) from the dividend and append it to 298, then repeat: 2982 / 508

On to step 7:
508 goes into 2982 5 times with a remainder of 442.
Write down 5 as next digit of the result. 
Result so far: 6145.0
Subtracting 2540 from 2982 leaves us with 442.
Take the next digit (1) from the dividend and append it to 442, then repeat: 4421 / 508

Let's proceed to step 8:
4421 divided by 508 is 8 with a remainder of 357.
Record the quotient 8 as the next digit in the result. 
Result so far: 61458.0
If we subtract 4064 from 4421, we get 357.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3570, and continue the process.

Going ahead to step 9:
When dividing 3570 by 508, we get 7 with a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 61458.7
Subtract 3556 from 3570 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 10:
The number 508 fits into 140 0 times, leaving a remainder of 140.
Write down 0 as next digit of the result. 
Result so far: 61458.7
If we subtract 0 from 140, we get 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Let's proceed to step 11:
508 can be fit into 1400 2 times, resulting in a remainder of 384.
Record the quotient 2 as the next digit in the result. 
Result so far: 61458.702
Deduct 1016 from 1400 and we're left with 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Advancing to step 12:
3840 divided by 508 is 7 with a remainder of 284.
Record the quotient 7 as the next digit in the result. 
Result so far: 61458.7027
Subtract 3556 from 3840 to get 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

On to step 13:
When dividing 2840 by 508, we get 5 with a remainder of 300.
Use 5 as the next digit of our solution. 
Result so far: 61458.70275
If we subtract 2540 from 2840, we get 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

Going ahead to step 14:
508 goes into 3000 5 times with a remainder of 460.
Use 5 as the next digit of our solution. 
Result so far: 61458.702755
Subtracting 2540 from 3000 leaves us with 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

The final result is 61458.702755 with a remainder of 4.6e-05.