We divide 31790125 by 586
Let's see how many times 586 fits into 31790125.

Advancing to step 1:
586 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 586

On to step 2:
If we divide 31 by 586, we get 0 and a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Take the next digit (7) from the dividend and append it to 31, then repeat: 317 / 586

Advancing to step 3:
When dividing 317 by 586, we get 0 with a remainder of 317.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 317 leaves us with 317.
Take the next digit (9) from the dividend and append it to 317, then repeat: 3179 / 586

On to step 4:
If we divide 3179 by 586, we get 5 and a remainder of 249.
Write down 5 as next digit of the result. 
Result so far: 5.0
Subtract 2930 from 3179 to get 249.
Append the next digit (0) from the dividend to 249 and continue with: 2490 / 586

Let's proceed to step 5:
If we divide 2490 by 586, we get 4 and a remainder of 146.
Write down 4 as next digit of the result. 
Result so far: 54.0
If we take 2344 away from 2490, we end up with 146.
Take the next digit (1) from the dividend and append it to 146, then repeat: 1461 / 586

Advancing to step 6:
1461 divided by 586 is 2 with a remainder of 289.
Write down 2 as next digit of the result. 
Result so far: 542.0
If we take 1172 away from 1461, we end up with 289.
Fetch the next digit (2) from the dividend, attach it to 289 and continue: 2892 / 586

Going ahead to step 7:
When dividing 2892 by 586, we get 4 with a remainder of 548.
Write down 4 as next digit of the result. 
Result so far: 5424.0
If we subtract 2344 from 2892, we get 548.
Include the next digit (5) from the dividend after 548, then repeat: 5485 / 586

Let's proceed to step 8:
586 can be fit into 5485 9 times, resulting in a remainder of 211.
Put 9 as the next digit of the answer. 
Result so far: 54249.0
Deduct 5274 from 5485 and we're left with 211.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2110, and continue the process.

On to step 9:
If we divide 2110 by 586, we get 3 and a remainder of 352.
The next digit of our result is 3. 
Result so far: 54249.3
If we subtract 1758 from 2110, we get 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

Going ahead to step 10:
The number 586 fits into 3520 6 times, leaving a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 54249.36
Subtract 3516 from 3520 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 11:
The number 586 fits into 40 0 times, leaving a remainder of 40.
The next digit of our result is 0. 
Result so far: 54249.36
If we subtract 0 from 40, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 12:
If we divide 400 by 586, we get 0 and a remainder of 400.
The next digit of our result is 0. 
Result so far: 54249.36
Deduct 0 from 400 and we're left with 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

The quotient of the division is 54249.36, and the remainder is 0.004.