Let's divide 40904787 by 584
Let's see how many times 584 fits into 40904787.

Moving on to step 1:
If we divide 4 by 584, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 584

On to step 2:
When dividing 40 by 584, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Include the next digit (9) from the dividend after 40, then repeat: 409 / 584

Step 3:
584 goes into 409 0 times with a remainder of 409.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 409, we get 409.
Include the next digit (0) from the dividend after 409, then repeat: 4090 / 584

Moving on to step 4:
4090 divided by 584 is 7 with a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we subtract 4088 from 4090, we get 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 584

Let's proceed to step 5:
When dividing 24 by 584, we get 0 with a remainder of 24.
Write down 0 as next digit of the result. 
Result so far: 70.0
Subtract 0 from 24 to get 24.
Include the next digit (7) from the dividend after 24, then repeat: 247 / 584

Let's proceed to step 6:
If we divide 247 by 584, we get 0 and a remainder of 247.
Use 0 as the next digit of our solution. 
Result so far: 700.0
If we take 0 away from 247, we end up with 247.
Append the next digit (8) from the dividend to 247 and continue with: 2478 / 584

Advancing to step 7:
584 can be fit into 2478 4 times, resulting in a remainder of 142.
Write down 4 as next digit of the result. 
Result so far: 7004.0
Subtract 2336 from 2478 to get 142.
Fetch the next digit (7) from the dividend, attach it to 142 and continue: 1427 / 584

Step 8:
The number 584 fits into 1427 2 times, leaving a remainder of 259.
Record the quotient 2 as the next digit in the result. 
Result so far: 70042.0
If we subtract 1168 from 1427, we get 259.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2590, and continue the process.

On to step 9:
584 goes into 2590 4 times with a remainder of 254.
The next digit of our result is 4. 
Result so far: 70042.4
If we subtract 2336 from 2590, we get 254.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2540, and continue the process.

Let's proceed to step 10:
The number 584 fits into 2540 4 times, leaving a remainder of 204.
Put 4 as the next digit of the answer. 
Result so far: 70042.44
If we subtract 2336 from 2540, we get 204.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2040, and continue the process.

The final result is 70042.44 with a remainder of 0.204.