40178521 divided by 495 
We're looking to find how many times 495 goes into 40178521.

Moving on to step 1:
495 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 495

Advancing to step 2:
If we divide 40 by 495, we get 0 and a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Bring next digit (1) of the dividend behind the 40 and repeat the process: 401 / 495

On to step 3:
If we divide 401 by 495, we get 0 and a remainder of 401.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 401, we end up with 401.
Take the next digit (7) from the dividend and append it to 401, then repeat: 4017 / 495

Advancing to step 4:
When dividing 4017 by 495, we get 8 with a remainder of 57.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Subtract 3960 from 4017 to get 57.
Append the next digit (8) from the dividend to 57 and continue with: 578 / 495

Advancing to step 5:
When dividing 578 by 495, we get 1 with a remainder of 83.
Put 1 as the next digit of the answer. 
Result so far: 81.0
If we subtract 495 from 578, we get 83.
Take the next digit (5) from the dividend and append it to 83, then repeat: 835 / 495

Step 6:
If we divide 835 by 495, we get 1 and a remainder of 340.
Write down 1 as next digit of the result. 
Result so far: 811.0
If we take 495 away from 835, we end up with 340.
Grab the next digit (2) from the dividend, add it to 340, then carry on: 3402 / 495

Step 7:
If we divide 3402 by 495, we get 6 and a remainder of 432.
The next digit of our result is 6. 
Result so far: 8116.0
Subtract 2970 from 3402 to get 432.
Bring next digit (1) of the dividend behind the 432 and repeat the process: 4321 / 495

Going ahead to step 8:
495 can be fit into 4321 8 times, resulting in a remainder of 361.
Put 8 as the next digit of the answer. 
Result so far: 81168.0
If we take 3960 away from 4321, we end up with 361.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3610, and continue the process.

Advancing to step 9:
3610 divided by 495 is 7 with a remainder of 145.
Write down 7 as next digit of the result. 
Result so far: 81168.7
If we subtract 3465 from 3610, we get 145.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1450, and continue the process.

Going ahead to step 10:
495 can be fit into 1450 2 times, resulting in a remainder of 460.
Write down 2 as next digit of the result. 
Result so far: 81168.72
The remainder is 460 after subtracting 990 from 1450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

Let's proceed to step 11:
495 goes into 4600 9 times with a remainder of 145.
The next digit of our result is 9. 
Result so far: 81168.729
If we take 4455 away from 4600, we end up with 145.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1450, and continue the process.

Going ahead to step 12:
495 can be fit into 1450 2 times, resulting in a remainder of 460.
Record the quotient 2 as the next digit in the result. 
Result so far: 81168.7292
Subtract 990 from 1450 to get 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

Moving on to step 13:
The number 495 fits into 4600 9 times, leaving a remainder of 145.
Record the quotient 9 as the next digit in the result. 
Result so far: 81168.72929
Subtracting 4455 from 4600 leaves us with 145.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1450, and continue the process.

Going ahead to step 14:
If we divide 1450 by 495, we get 2 and a remainder of 460.
The next digit of our result is 2. 
Result so far: 81168.729292
If we subtract 990 from 1450, we get 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

Step 15:
4600 divided by 495 is 9 with a remainder of 145.
Write down 9 as next digit of the result. 
Result so far: 81168.7292929
If we take 4455 away from 4600, we end up with 145.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1450, and continue the process.

Step 16:
495 can be fit into 1450 2 times, resulting in a remainder of 460.
Record the quotient 2 as the next digit in the result. 
Result so far: 81168.72929292
Subtract 990 from 1450 to get 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

After the division, we end up with 81168.72929292 and a remainder of 4.6e-07.