31795974 ÷ 904 
Our goal is to divide 31795974 by 904.

Let's proceed to step 1:
3 divided by 904 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 904

Moving on to step 2:
31 divided by 904 is 0 with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Bring next digit (7) of the dividend behind the 31 and repeat the process: 317 / 904

On to step 3:
904 can be fit into 317 0 times, resulting in a remainder of 317.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 317, we end up with 317.
Bring next digit (9) of the dividend behind the 317 and repeat the process: 3179 / 904

Let's proceed to step 4:
If we divide 3179 by 904, we get 3 and a remainder of 467.
Write down 3 as next digit of the result. 
Result so far: 3.0
Deduct 2712 from 3179 and we're left with 467.
Grab the next digit (5) from the dividend, add it to 467, then carry on: 4675 / 904

On to step 5:
The number 904 fits into 4675 5 times, leaving a remainder of 155.
The next digit of our result is 5. 
Result so far: 35.0
Subtracting 4520 from 4675 leaves us with 155.
Bring next digit (9) of the dividend behind the 155 and repeat the process: 1559 / 904

Moving on to step 6:
If we divide 1559 by 904, we get 1 and a remainder of 655.
Write down 1 as next digit of the result. 
Result so far: 351.0
Deduct 904 from 1559 and we're left with 655.
Append the next digit (7) from the dividend to 655 and continue with: 6557 / 904

Let's proceed to step 7:
If we divide 6557 by 904, we get 7 and a remainder of 229.
Write down 7 as next digit of the result. 
Result so far: 3517.0
If we take 6328 away from 6557, we end up with 229.
Append the next digit (4) from the dividend to 229 and continue with: 2294 / 904

Moving on to step 8:
904 goes into 2294 2 times with a remainder of 486.
The next digit of our result is 2. 
Result so far: 35172.0
The remainder is 486 after subtracting 1808 from 2294.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4860, and continue the process.

On to step 9:
904 can be fit into 4860 5 times, resulting in a remainder of 340.
Use 5 as the next digit of our solution. 
Result so far: 35172.5
Deduct 4520 from 4860 and we're left with 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Let's proceed to step 10:
904 can be fit into 3400 3 times, resulting in a remainder of 688.
Record the quotient 3 as the next digit in the result. 
Result so far: 35172.53
If we subtract 2712 from 3400, we get 688.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6880, and continue the process.

On to step 11:
904 goes into 6880 7 times with a remainder of 552.
The number 7 becomes the next digit in our result. 
Result so far: 35172.537
If we subtract 6328 from 6880, we get 552.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5520, and continue the process.

Step 12:
The number 904 fits into 5520 6 times, leaving a remainder of 96.
Write down 6 as next digit of the result. 
Result so far: 35172.5376
Subtracting 5424 from 5520 leaves us with 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Let's proceed to step 13:
If we divide 960 by 904, we get 1 and a remainder of 56.
Write down 1 as next digit of the result. 
Result so far: 35172.53761
Deduct 904 from 960 and we're left with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Going ahead to step 14:
904 can be fit into 560 0 times, resulting in a remainder of 560.
The next digit of our result is 0. 
Result so far: 35172.53761
Deduct 0 from 560 and we're left with 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5600, and continue the process.

Advancing to step 15:
904 goes into 5600 6 times with a remainder of 176.
Record the quotient 6 as the next digit in the result. 
Result so far: 35172.5376106
If we take 5424 away from 5600, we end up with 176.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1760, and continue the process.

Going ahead to step 16:
904 goes into 1760 1 times with a remainder of 856.
The next digit of our result is 1. 
Result so far: 35172.53761061
The remainder is 856 after subtracting 904 from 1760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8560, and continue the process.

The final outcome is 35172.53761061, with a leftover of 8.56e-07.