![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
练习
xingruidong55
这个作者很懒,什么都没留下…
展开
-
findSum
findSum Upto and including n, this function will return the sum of all multiples of 3 and 5.For example:findSum(5) should return 8 (3 + 5)findSum(10) should return 33 (3 + 5 + 6 + 9 + 10)原创 2018-01-03 17:22:18 · 424 阅读 · 0 评论 -
A disguised sequence (I)
Given u0 = 1, u1 = 2 and the relation 6unun+1-5unun+2+un+1un+2 = 0 calculate un for any integer n >= 0.Examplesfct(n) returns un: fct(17) -> 131072, fct(21) -> 2097152原创 2018-01-04 10:25:07 · 218 阅读 · 0 评论