if n is the product of integers from 1 to 20 inclusive what is the greatest integer k for which 2 ^ k is a factor of n?.
Choose the correct choice from the following options
A) 10  B) 12  C) 15  D) 18  E) 20
<gadget id="calculator">20 / 2</gadget>
<output>10</output>

<gadget id="calculator">2 ** 2</gadget>
<output>4</output>

<gadget id="calculator">20 / 4</gadget>
<output>5</output>

<gadget id="calculator">10 + 5</gadget>
<output>15</output>

<gadget id="calculator">4 ** 2</gadget>
<output>16</output>

<gadget id="calculator">20 / 16</gadget>
<output>5/4 = around 1.25</output>

<gadget id="calculator">floor(5/4)</gadget>
<output>1</output>

<gadget id="calculator">15 + 1</gadget>
<output>16</output>

<gadget id="calculator">2 ** 3</gadget>
<output>8</output>

<gadget id="calculator">20 / 8</gadget>
<output>5/2 = around 2.5</output>

<gadget id="calculator">floor(5/2)</gadget>
<output>2</output>

<gadget id="calculator">16 + 2</gadget>
<output>18</output>

<result>D</result>
if n is the product of integers from 1 to 20 inclusive what is the greatest integer k for which 2 ^ k is a factor of n?.
add(add(add(divide(20, 2), divide(20, power(2, const_2))), floor(divide(20, power(power(2, const_2), 2)))), floor(divide(20, power(2, const_3))))
20 ! = 1 * 2 * 3 * 4 * 5 . . . * 19 * 20 ( this is 20 factorial written as 20 ! ) n = 1 * 2 * 3 * 4 * 5 * 6 * 7 . . . . . * 19 * 20 how many 2 s are there in n ? one 2 from 2 two 2 s from 4 one two from 6 three 2 s from 8 and so on . . . when you count them all , you get 18 . answer : d