导航菜单

« Wnd visit BDMobile Web Forms in Visual Studio 2008[转] »

有趣的数学-计算机试题

Problem 1

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

如果我们罗列10以下的能被3或5整除的自然数,我们可以得到3,5和9.他们的和为23.
请计算出1000以下能被3和5整除的自然数之和是多少?

Problem 2

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...

Find the sum of all the even-valued terms in the sequence which do not exceed four million.

斐波纳契数列每一个值是由前两个数值相加和成.从1和2开始.前10个值为:
        1,2,3,5,8,13,21,34,55,89,...

请计算出不超过4百万的值中的各个数值之和.

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。



日历

网站目录

最新评论

最近发表

Powered By Z-Blog 1.6 Beta Build 60517

Copyright yxyr.com ,Some Rights Reserved.浙ICP备06021833号