自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (1)
  • 收藏
  • 关注

原创 欧拉计划问题二十五matlab实现

Problem 25 : 1000-digit Fibonacci numberThe Fibonacci sequence is defined by the recurrence relation:=  + , where   = 1 and = 1.Hence the first 12 terms will be: = 1 = 1 = 2 = 3 = 5 = 8 = 13 =...

2018-11-18 21:09:54 580 4

原创 欧拉计划问题二十四matlab实现

Problem 24 :Lexicographic permutationsA permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are li...

2018-11-15 22:06:23 311

原创 欧拉计划问题二十三matlab实现

Problem 23 :Non-abundant sumsA perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + ...

2018-11-09 19:03:25 335

原创 欧拉计划问题二十二matlab实现

Problem 22 :Names scoresUsing names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then worki...

2018-11-01 16:41:44 277 1

原创 欧拉计划问题二十一matlab实现

Problem 21 :Amicable numbersLet d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicab...

2018-10-30 15:03:43 245

原创 欧拉计划问题二十的matlab实现

Problem 20 : Factorial digit sumn! means n × (n − 1) × ... × 3 × 2 × 1For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800,and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + ...

2018-10-26 17:27:43 309 1

原创 欧拉计划问题十九matlab实现

Problem 19 :Counting SundaysYou are given the following information, but you may prefer to do some research for yourself.1 Jan 1900 was a Monday. Thirty days has September, April, June and Novem...

2018-10-24 11:47:38 261

原创 欧拉计划问题十八matlab实现

Problem 18 :Maximum path sum IBy starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. That is, 3 + 7 + 4 + 9 = 2...

2018-10-21 20:52:32 618 2

原创 欧拉计划问题十七matlab实现

Problem 17 :Number letter countsIf the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.If all the numbers from 1 t...

2018-10-20 16:16:36 436 2

原创 欧拉计划问题十六matlab实现

Problem 16 : Power digit sum = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number ?思路 :这题就是一个数据的处理,将数字转换成字符串,然后循环加和!代码 : clc;clear;ti...

2018-10-18 23:12:45 317

原创 欧拉计划问题十五matlab实现

Problem 15 :Lattice pathsStarting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.                   ...

2018-10-18 12:20:17 287

原创 欧拉计划问题十四matlab实现

Problem 14 :Longest Collatz sequenceThe following iterative sequence is defined for the set of positive integers:                                                            n → n/2 (n is even)   ...

2018-10-16 13:37:54 392

原创 欧拉计划问题十三matlab实现

Problem 13 :Large sumWork out the first ten digits of the sum of the following one-hundred 50-digit numbers.371072875339021027987979982208375902465101357402504637693767749000971264812489697007805...

2018-10-14 19:18:56 263

原创 欧拉计划问题十二matlab实现

Problem 12 :The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be                   1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms wou...

2018-10-13 21:32:56 827

原创 欧拉计划问题十一matlab实现

Problem 11 :Largest product in a gridIn the 20×20 grid below, four numbers along a diagonal line have been marked in red.               08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08...

2018-10-12 23:10:39 362

原创 欧拉计划问题十matlab实现

Problem 10 :Summation of primesThe sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.思路 :在前面的欧拉计划问题七中我们已经对素数的概念有了一个理性的认识,众所周知,matlab是一个功能很强大的软件,...

2018-10-11 22:52:11 380

原创 欧拉计划问题九matlab实现

Problem 9 : Special Pythagorean triplet(特殊的毕达哥拉斯三重奏)A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,                                              For example,...

2018-10-10 11:22:59 325

原创 欧拉计划问题八matlab实现

problem 8 :Largest product in a seriesThe four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.                                73167176531330624919...

2018-10-09 15:21:28 358

原创 欧拉计划问题七matlab实现

Problem 7 :By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.What is the 10001st prime number?思路 :我们首先列举出一些有用的条件:1不是素数。 素数中除了2是偶数以外,其他的素数都是...

2018-10-08 21:34:04 586

原创 欧拉计划问题六matlab实现

Problem 6:Sum square differenceThe sum of the squares of the first ten natural numbers is:                                 The square of the sum of the first ten natural numbers is:           ...

2018-10-07 22:02:42 370

原创 欧拉计划问题五matlab实现

Problem 5 :  Smallest multiple2520 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 divisibl...

2018-10-06 16:20:08 1752

原创 欧拉计划问题四matlab实现

Problem4: Largest palindrome productA palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99.Find the largest palindrome...

2018-10-05 21:49:31 378

原创 欧拉计划问题三matlab实现

Problem3: Largest prime factorThe prime factors of 13195 are 3,7,13 and 29. What is the largest prime factor of  the number 600851475143?思路:采用循环来遍历求最大质数因子。设置一个循环从2到比自身小1,逐次相除迭代(计算机最擅长的事就是做循环了)...

2018-10-04 19:59:59 465 3

原创 欧拉计划问题二matlab实现

Problem 1:if we list all the natural numbers blew 10 that multiples of 3 or 5, we get 3,5, 6 and 9,The sum of those multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000,思路:新建三个变量i,...

2018-10-03 22:49:05 444

原创 欧拉计划问题一matlab实现

Problem 1:Multiples of 3 and 5if we list all the natural numbers blew 10 that multiples of 3 or 5, we get 3,5, 6 and 9,The sum of those multiples is 23. Find the sum of all the multiples of 3 or 5 b...

2018-10-02 20:17:52 906

Euler project(1-5).zip

学习Matlab的时候,欧拉计划网站有许多题目,你可以进行编程解决,以提高自己MATLAB编程能力。

2020-01-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除