欧拉计划
韩韩韩韩韩美丽
这个作者很懒,什么都没留下…
展开
-
欧拉计划 第十二题
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 would be:1, 3, 6, 10, 15, 21, 28, 3...原创 2018-07-08 10:20:52 · 518 阅读 · 0 评论 -
欧拉计划 第十四题
The following iterative sequence is defined for the set of positive integers:n → n/2 (n is even)n → 3n + 1 (n is odd)Using the rule above and starting with 13, we generate the following sequence:13 → ...原创 2018-07-04 17:43:20 · 460 阅读 · 0 评论 -
欧拉计划 第三十九题
If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120.{20,48,52}, {24,45,51}, {30,40,50}For which value of p ≤ 1000, is the...原创 2018-07-11 16:09:51 · 222 阅读 · 0 评论 -
欧拉计划 第四十六题
prime and twice a square.9 = 7 + 2×1215 = 7 + 2×2221 = 3 + 2×3225 = 7 + 2×3227 = 19 + 2×2233 = 31 + 2×12It turns out that the conjecture was false.What is the smallest odd composite that cannot be wri...原创 2018-07-11 18:33:08 · 178 阅读 · 0 评论 -
欧拉计划 第十七题
If 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 to 1000 (one thousand) inclusive were...原创 2018-07-05 07:25:18 · 566 阅读 · 0 评论 -
欧拉计划 第十三题
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.37107287533902102798797998220837590246510135740250463769376774900097126481248969700780504170182605387432498619952...原创 2018-07-05 08:52:43 · 316 阅读 · 0 评论 -
欧拉计划 第四十七题
The first two consecutive numbers to have two distinct prime factors are:14 = 2 × 715 = 3 × 5The first three consecutive numbers to have three distinct prime factors are:644 = 2² × 7 × 23645 = 3 × 5 ×...原创 2018-07-11 19:02:34 · 262 阅读 · 0 评论 -
欧拉计划 第十九题
You 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 November.All the rest have thirty-one,Sav...原创 2018-07-11 19:20:12 · 304 阅读 · 0 评论 -
欧拉计划 第二十五题
The Fibonacci sequence is defined by the recurrence relation:Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1.Hence the first 12 terms will be:F1 = 1F2 = 1F3 = 2F4 = 3F5 = 5F6 = 8F7 = 13F8 = 21F9 = 34F10 = 5...原创 2018-07-05 12:29:59 · 252 阅读 · 0 评论 -
欧拉计划 第二十一题
Let 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 amicable pair and each of a and b are...原创 2018-07-13 09:36:06 · 250 阅读 · 0 评论 -
欧拉计划 第三十一题
In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).It is possible to make £2 in the follo...原创 2018-07-06 15:58:03 · 292 阅读 · 0 评论 -
欧拉计划 第二十三题
A 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 + 4 + 7 + 14 = 28, which means th...原创 2018-07-13 10:08:21 · 300 阅读 · 0 评论 -
欧拉计划 第三十三题
The fraction 49/98 is a curious fraction, as an inexperienced mathematician in attempting to simplify it may incorrectly believe that 49/98 = 4/8, which is correct, is obtained by cancelling the 9s.We...原创 2018-07-06 19:17:20 · 354 阅读 · 0 评论 -
欧拉计划 第三十五题
The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 7...原创 2018-07-06 20:12:40 · 180 阅读 · 0 评论 -
欧拉计划 第三十五题
The number 3797 has an interesting property. Being prime itself, it is possible to continuously remove digits from left to right, and remain prime at each stage: 3797, 797, 97, and 7. Similarly we can...原创 2018-07-06 23:34:00 · 197 阅读 · 0 评论 -
欧拉计划 第四十五题
Triangle, pentagonal, and hexagonal numbers are generated by the following formulae:Triangle T*n*=*n*(*n*+1)/2 1, 3, 6, 10, 15, ... Pentagonal P*n*=*n*(3*n*−1)/2 1, 5, 12, 22, 35, ... He...原创 2018-07-07 17:29:55 · 256 阅读 · 0 评论 -
欧拉计划 第四十四题
Pentagonal numbers are generated by the formula, Pn=n(3n−1)/2. The first ten pentagonal numbers are:1, 5, 12, 22, 35, 51, 70, 92, 117, 145, ...It can be seen that P4 + P7 = 22 + 70 = 92 = P8. However,...原创 2018-07-07 19:53:41 · 368 阅读 · 0 评论 -
欧拉计划 第十题
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.低于10的素数之和为2 + 3 + 5 + 7 = 17。找出200万以下所有素数的总和。思路这道题与第7题的线性筛思路一样,只是筛出小于两百万的素数的同时进行求和,要记得用int64_t哟#in...原创 2018-07-04 12:01:25 · 449 阅读 · 0 评论 -
欧拉计划 第七题
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 10 001st prime number?通过列出前六个素数:2,3,5,7,11和13,我们可以看到第6个素数是13。第是10 001素数是什么?1.素数筛思想:任何一个合...原创 2018-07-04 10:38:58 · 288 阅读 · 0 评论 -
欧拉计划 第五题
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 ...原创 2018-07-04 09:43:03 · 508 阅读 · 0 评论 -
欧拉计划 第十五题
Starting 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.How many such routes are there through a 20×20 g...原创 2018-07-08 10:46:48 · 521 阅读 · 0 评论 -
欧拉计划 第十六题
215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 21000?2 15 = 32768,其数字之和为3 + 2 + 7 + 6 + 8 = 26。数字2 1000的数字总和是多少?思路1.大数相乘,只需将大数相加中的加法改成乘法即可#...原创 2018-07-08 12:21:08 · 373 阅读 · 0 评论 -
欧拉计划 第十八题
By 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.37 42 4 68 5 9 3That is, 3 + 7 + 4 + 9 = 23.Find the maximum to...原创 2018-07-08 16:38:17 · 536 阅读 · 0 评论 -
欧拉计划 第二十题
n! 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 + 0 = 27.Find the sum of the digits in ...原创 2018-07-08 18:16:32 · 256 阅读 · 0 评论 -
欧拉计划 第二十四题
A 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 listed numerically or alphabetically, we c...原创 2018-07-08 19:22:13 · 311 阅读 · 0 评论 -
欧拉计划 第二十六题
A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given:1/2= 0.51/3= 0.(3)1/4= 0.251/5= 0.21/6= 0.1(6)1/7= 0.(142857)1/8= 0.12...原创 2018-07-08 20:06:02 · 195 阅读 · 0 评论 -
欧拉计划 第一题
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的自然数...原创 2018-07-03 17:01:18 · 604 阅读 · 0 评论 -
欧拉计划 第二题
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, ...By considering the ter...原创 2018-07-03 18:13:18 · 532 阅读 · 0 评论 -
欧拉计划 第三题
The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ?13195的主要素因子是5,7,13和29。600851475143的最大素因子是什么?答案:6857思路我们可以知道任意的合数可以由两个数相乘得来,如c = a * b,假设a<...原创 2018-07-03 18:44:25 · 675 阅读 · 0 评论 -
欧拉计划 第四题
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.Find the largest palindrome made from the product of two 3-digit nu...原创 2018-07-03 19:28:11 · 520 阅读 · 0 评论 -
欧拉计划 第六题
The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 + ... + 10)2 = 552 = 3025Hence the difference betwe...原创 2018-07-03 20:22:32 · 186 阅读 · 0 评论 -
欧拉计划 第二十八题
数字螺旋对角线Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows:21 22 23 24 2520 7 8 9 1019 6 1 2 1118 5 4 3 1217 16 15 14 13It can be ...原创 2018-07-03 20:51:39 · 260 阅读 · 0 评论 -
欧拉计划 第三十题
Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:1634 = 14 + 64 + 34 + 448208 = 84 + 24 + 04 + 849474 = 94 + 44 + 74 + 44As 1 = 14 is not a sum...原创 2018-07-03 22:15:37 · 302 阅读 · 0 评论 -
欧拉计划 第三十六题
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.(Please note that the palin...原创 2018-07-04 09:17:54 · 253 阅读 · 0 评论 -
欧拉计划 第三十四题
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.Find the sum of all numbers which are equal to the sum of the factorial of their digits.Note: as 1! = 1 and 2! = 2 are not sums they are n...原创 2018-07-04 09:21:19 · 311 阅读 · 0 评论 -
欧拉计划 第九题
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,a2 + b2 = c2For example, 32 + 42 = 9 + 16 = 25 = 52.There exists exactly one Pythagorean triplet for which a + b + c...原创 2018-07-07 20:27:45 · 293 阅读 · 0 评论