Chinaunix首页 | 论坛 | 博客
  • 博客访问: 216624
  • 博文数量: 68
  • 博客积分: 3120
  • 博客等级: 中校
  • 技术积分: 715
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-08 09:53
文章分类
文章存档

2012年(29)

2011年(3)

2010年(18)

2009年(18)

我的朋友

分类: C/C++

2012-01-18 20:05:02

问题:
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?


答案:232792560

Matlab:
%%20: 2 3 5 7 11 13 17 19
2^4*3^2*7*11*13*17*19

直接分析出各个质因子的数量而得出。

阅读(476) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~