Q4:
If n is the product of the integers from1 to 20 inclusive, what is the greatest integer k for which 2k is a factor of n?
A. 10
B. 12
C. 15
D. 18
E. 20
举报
其实就是问1*2*3....*20 里面有几个2吧。
2,4,4,6,8,8,8,10,12,12,14,16,16,16,16,18,20,20
答案18?
2 4 6 8 10 12 14 16 18 20
1 2 1 3 1 2 1 4 1 2
所以就是18~~呵呵
xiexie!有更快的方法吗?还是必须要数2呢?
我是这样算的,其实都差不多,不过如果数字非常多的话这种方法可能稍微快点。
1 2 3 ……20 除2取整
1 2 3 ……10 得到10个2 继续除2取整
1 2 3 4 5 得到5个2 继续除2取整
12 得到2个2 继续除2取整
1 得到1个2 结束
10+5+2+1 = 18
发表回复
手机版|ChaseDream|GMT+8, 2026-2-4 23:49 京公网安备11010202008513号 京ICP证101109号 京ICP备12012021号
ChaseDream 论坛
© 2003-2025 ChaseDream.com. All Rights Reserved.