We're dividing 40775481 by 589 
We want to figure out the number of times 40775481 can be divided by 589.

Let's proceed to step 1:
589 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 589

Advancing to step 2:
40 divided by 589 is 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Fetch the next digit (7) from the dividend, attach it to 40 and continue: 407 / 589

On to step 3:
The number 589 fits into 407 0 times, leaving a remainder of 407.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 407 leaves us with 407.
Fetch the next digit (7) from the dividend, attach it to 407 and continue: 4077 / 589

Advancing to step 4:
589 goes into 4077 6 times with a remainder of 543.
Put 6 as the next digit of the answer. 
Result so far: 6.0
If we take 3534 away from 4077, we end up with 543.
Take the next digit (5) from the dividend and append it to 543, then repeat: 5435 / 589

Advancing to step 5:
The number 589 fits into 5435 9 times, leaving a remainder of 134.
Write down 9 as next digit of the result. 
Result so far: 69.0
Subtracting 5301 from 5435 leaves us with 134.
Bring next digit (4) of the dividend behind the 134 and repeat the process: 1344 / 589

Let's proceed to step 6:
589 goes into 1344 2 times with a remainder of 166.
Write down 2 as next digit of the result. 
Result so far: 692.0
Subtract 1178 from 1344 to get 166.
Take the next digit (8) from the dividend and append it to 166, then repeat: 1668 / 589

Moving on to step 7:
1668 divided by 589 is 2 with a remainder of 490.
Use 2 as the next digit of our solution. 
Result so far: 6922.0
The remainder is 490 after subtracting 1178 from 1668.
Append the next digit (1) from the dividend to 490 and continue with: 4901 / 589

On to step 8:
589 goes into 4901 8 times with a remainder of 189.
Use 8 as the next digit of our solution. 
Result so far: 69228.0
Subtracting 4712 from 4901 leaves us with 189.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1890, and continue the process.

Going ahead to step 9:
1890 divided by 589 is 3 with a remainder of 123.
Put 3 as the next digit of the answer. 
Result so far: 69228.3
If we subtract 1767 from 1890, we get 123.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1230, and continue the process.

Let's proceed to step 10:
589 goes into 1230 2 times with a remainder of 52.
Record the quotient 2 as the next digit in the result. 
Result so far: 69228.32
If we take 1178 away from 1230, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

On to step 11:
The number 589 fits into 520 0 times, leaving a remainder of 520.
Put 0 as the next digit of the answer. 
Result so far: 69228.32
If we subtract 0 from 520, we get 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5200, and continue the process.

Step 12:
589 can be fit into 5200 8 times, resulting in a remainder of 488.
Use 8 as the next digit of our solution. 
Result so far: 69228.3208
If we subtract 4712 from 5200, we get 488.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4880, and continue the process.

Let's proceed to step 13:
589 goes into 4880 8 times with a remainder of 168.
Write down 8 as next digit of the result. 
Result so far: 69228.32088
The remainder is 168 after subtracting 4712 from 4880.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

The final outcome is 69228.32088, with a leftover of 0.000168.