40589715 divided by 255 
Let's see how many times 255 fits into 40589715.

Let's proceed to step 1:
When dividing 4 by 255, we get 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 255

On to step 2:
255 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Append the next digit (5) from the dividend to 40 and continue with: 405 / 255

On to step 3:
255 can be fit into 405 1 times, resulting in a remainder of 150.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 255 from 405 leaves us with 150.
Grab the next digit (8) from the dividend, add it to 150, then carry on: 1508 / 255

Advancing to step 4:
255 can be fit into 1508 5 times, resulting in a remainder of 233.
Write down 5 as next digit of the result. 
Result so far: 15.0
The remainder is 233 after subtracting 1275 from 1508.
Append the next digit (9) from the dividend to 233 and continue with: 2339 / 255

On to step 5:
255 can be fit into 2339 9 times, resulting in a remainder of 44.
The next digit of our result is 9. 
Result so far: 159.0
Subtracting 2295 from 2339 leaves us with 44.
Include the next digit (7) from the dividend after 44, then repeat: 447 / 255

On to step 6:
The number 255 fits into 447 1 times, leaving a remainder of 192.
The number 1 becomes the next digit in our result. 
Result so far: 1591.0
If we subtract 255 from 447, we get 192.
Include the next digit (1) from the dividend after 192, then repeat: 1921 / 255

Step 7:
When dividing 1921 by 255, we get 7 with a remainder of 136.
The number 7 becomes the next digit in our result. 
Result so far: 15917.0
Subtract 1785 from 1921 to get 136.
Include the next digit (5) from the dividend after 136, then repeat: 1365 / 255

Let's proceed to step 8:
1365 divided by 255 is 5 with a remainder of 90.
Put 5 as the next digit of the answer. 
Result so far: 159175.0
The remainder is 90 after subtracting 1275 from 1365.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Step 9:
If we divide 900 by 255, we get 3 and a remainder of 135.
Use 3 as the next digit of our solution. 
Result so far: 159175.3
The remainder is 135 after subtracting 765 from 900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1350, and continue the process.

Moving on to step 10:
255 can be fit into 1350 5 times, resulting in a remainder of 75.
Use 5 as the next digit of our solution. 
Result so far: 159175.35
If we subtract 1275 from 1350, we get 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Step 11:
750 divided by 255 is 2 with a remainder of 240.
The next digit of our result is 2. 
Result so far: 159175.352
If we subtract 510 from 750, we get 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Let's proceed to step 12:
When dividing 2400 by 255, we get 9 with a remainder of 105.
The next digit of our result is 9. 
Result so far: 159175.3529
The remainder is 105 after subtracting 2295 from 2400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1050, and continue the process.

Advancing to step 13:
If we divide 1050 by 255, we get 4 and a remainder of 30.
Use 4 as the next digit of our solution. 
Result so far: 159175.35294
Subtract 1020 from 1050 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 14:
When dividing 300 by 255, we get 1 with a remainder of 45.
The next digit of our result is 1. 
Result so far: 159175.352941
Deduct 255 from 300 and we're left with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Moving on to step 15:
If we divide 450 by 255, we get 1 and a remainder of 195.
Put 1 as the next digit of the answer. 
Result so far: 159175.3529411
Subtracting 255 from 450 leaves us with 195.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1950, and continue the process.

The final outcome is 159175.3529411, with a leftover of 1.95e-06.