We divide 16165664 by 40
We want to figure out the number of times 16165664 can be divided by 40.

Moving on to step 1:
1 divided by 40 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 40

On to step 2:
16 divided by 40 is 0 with a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Grab the next digit (1) from the dividend, add it to 16, then carry on: 161 / 40

Moving on to step 3:
If we divide 161 by 40, we get 4 and a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 160 from 161 and we're left with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 40

Moving on to step 4:
If we divide 16 by 40, we get 0 and a remainder of 16.
The next digit of our result is 0. 
Result so far: 40.0
If we subtract 0 from 16, we get 16.
Include the next digit (5) from the dividend after 16, then repeat: 165 / 40

Advancing to step 5:
40 can be fit into 165 4 times, resulting in a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 404.0
If we take 160 away from 165, we end up with 5.
Append the next digit (6) from the dividend to 5 and continue with: 56 / 40

Advancing to step 6:
The number 40 fits into 56 1 times, leaving a remainder of 16.
Put 1 as the next digit of the answer. 
Result so far: 4041.0
Subtracting 40 from 56 leaves us with 16.
Include the next digit (6) from the dividend after 16, then repeat: 166 / 40

Step 7:
40 goes into 166 4 times with a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 40414.0
Subtracting 160 from 166 leaves us with 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 40

On to step 8:
When dividing 64 by 40, we get 1 with a remainder of 24.
Use 1 as the next digit of our solution. 
Result so far: 404141.0
The remainder is 24 after subtracting 40 from 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 9:
When dividing 240 by 40, we get 6 with a remainder of 0.
Use 6 as the next digit of our solution. 
Result so far: 404141.6
Subtracting 240 from 240 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 404141.6
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 11:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 404141.6
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 404141.6, and the remainder is 0.0.