
project euler
文章平均质量分 79
whuawell
这个作者很懒,什么都没留下…
展开
-
project euler 69
Problem 69Totient maximumEuler’s Totient function, φ(n) [sometimes called the phi function], is used to determine the number of numbers less than n which are relatively prime to n. For exa原创 2015-12-10 11:55:19 · 385 阅读 · 0 评论 -
project euler 70
Problem 70Totient permutationEuler’s Totient function, φ(n) [sometimes called the phi function], is used to determine the number of numbers less than n which are relatively prime to n. For原创 2015-12-10 11:56:20 · 332 阅读 · 0 评论 -
project euler 68
Problem 68Magic 5-gon ringConsider the following “magic” 3-gon ring, filled with the numbers 1 to 6, and each line adding to nine.Working clockwise, and starting from the group of原创 2015-12-09 23:09:50 · 335 阅读 · 0 评论 -
project euler 71
Problem 71Ordered fractionsConsider the fraction, n/d, where n and d are positive integers. If n If we list the set of reduced proper fractions for d ≤ 8 in ascending order of size, we原创 2015-12-10 16:17:01 · 358 阅读 · 0 评论 -
project euler 74
Problem 74Digit factorial chainsThe number 145 is well known for the property that the sum of the factorial of its digits is equal to 145:1! + 4! + 5! = 1 + 24 + 120 = 145Perhaps l原创 2015-12-10 21:31:04 · 323 阅读 · 0 评论 -
project euler 73
Problem 73Counting fractions in a rangeConsider the fraction, n/d, where n and d are positive integers. If n If we list the set of reduced proper fractions for d ≤ 8 in ascending order原创 2015-12-10 22:19:48 · 363 阅读 · 0 评论 -
project euler 76
Problem 76Counting summationsIt is possible to write five as a sum in exactly six different ways:4 + 13 + 23 + 1 + 12 + 2 + 12 + 1 + 1 + 11 + 1 + 1 + 1 + 1How many differ原创 2015-12-10 21:33:08 · 341 阅读 · 0 评论 -
project euler 75
Problem 75Singular integer right trianglesIt turns out that 12 cm is the smallest length of wire that can be bent to form an integer sided right angle triangle in exactly one way, but ther原创 2015-12-10 21:32:10 · 505 阅读 · 0 评论 -
project euler 72
Problem 72Counting fractionsConsider the fraction, n/d, where n and d are positive integers. If n If we list the set of reduced proper fractions for d ≤ 8 in ascending order of size, w原创 2015-12-10 17:42:38 · 373 阅读 · 0 评论 -
project euler 77
Problem 77Prime summationsIt is possible to write ten as the sum of primes in exactly five different ways:7 + 35 + 55 + 3 + 23 + 3 + 2 + 22 + 2 + 2 + 2 + 2What is the first原创 2015-12-11 21:35:32 · 280 阅读 · 0 评论 -
project euler 78
Problem 78Coin partitionsLet p(n) represent the number of different ways in which n coins can be separated into piles. For example, five coins can separated into piles in exactly seven dif原创 2015-12-13 12:19:16 · 435 阅读 · 0 评论 -
project euler 79
Problem 79Passcode derivationA common security method used for online banking is to ask the user for three random characters from a passcode. For example, if the passcode was 531278, they原创 2015-12-13 23:13:49 · 480 阅读 · 0 评论 -
project euler 81
Problem 81Path sum: two waysIn the 5 by 5 matrix below, the minimal path sum from the top left to the bottom right, by only moving to the right and down, is indicated in bold red and is eq原创 2015-12-14 18:10:22 · 256 阅读 · 0 评论 -
project euler 82
Problem 82Path sum: three waysNOTE: This problem is a more challenging version of Problem 81.The minimal path sum in the 5 by 5 matrix below, by starting in any cell in the left colu原创 2015-12-14 22:19:57 · 520 阅读 · 0 评论 -
project euler 80
Problem 80Square root digital expansionIt is well known that if the square root of a natural number is not an integer, then it is irrational. The decimal expansion of such square roots is原创 2015-12-14 18:09:21 · 312 阅读 · 0 评论 -
project euler 83
Problem 83Path sum: four waysNOTE: This problem is a significantly more challenging version of Problem 81.In the 5 by 5 matrix below, the minimal path sum from the top left to the bo原创 2015-12-14 22:20:53 · 465 阅读 · 0 评论 -
project euler 85
Problem 85Counting rectanglesBy counting carefully it can be seen that a rectangular grid measuring 3 by 2 contains eighteen rectangles:Although there exists no rectangular grid th原创 2015-12-15 22:18:18 · 335 阅读 · 0 评论 -
project euler 87
Problem 87Prime power triplesThe smallest number expressible as the sum of a prime square, prime cube, and prime fourth power is 28. In fact, there are exactly four numbers below fifty tha原创 2015-12-15 22:20:37 · 351 阅读 · 0 评论 -
project euler 84
Problem 84Monopoly oddsIn the game, Monopoly, the standard board is set up in the following way: GOA1CC1原创 2015-12-15 22:15:44 · 256 阅读 · 0 评论 -
project euler 86
Problem 86Cuboid routeA spider, S, sits in one corner of a cuboid room, measuring 6 by 5 by 3, and a fly, F, sits in the opposite corner. By travelling on the surfaces of the room the shor原创 2015-12-15 22:18:52 · 376 阅读 · 0 评论 -
project euler 108
Diophantine reciprocals IIn the following equation x, y, and n are positive integers.1x+1y=1nFor n = 4 there are exactly three distinct solutions:15+120=1416+112=14原创 2016-01-01 00:00:46 · 472 阅读 · 0 评论 -
project euler 110
Diophantine reciprocals IIIn the following equation x, y, and n are positive integers.1x+1y=1nFor n = 4 there are exactly three distinct solutions:15+120=1416+112=14原创 2016-01-01 00:01:27 · 530 阅读 · 0 评论 -
project euler 112
Bouncy numbersWorking from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 134468.Similarly if no digit is exceeded by the digit原创 2016-01-01 00:03:05 · 1123 阅读 · 0 评论 -
project euler 111
Primes with runsConsidering 4-digit primes containing repeated digits it is clear that they cannot all be the same: 1111 is divisible by 11, 2222 is divisible by 22, and so on. But there are nine原创 2016-01-01 00:02:18 · 596 阅读 · 0 评论 -
project euler 113
Non-bouncy numbersWorking from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 134468.Similarly if no digit is exceeded by the di原创 2016-01-01 00:05:08 · 751 阅读 · 0 评论 -
project euler 88
Problem 88Product-sum numbersA natural number, N, that can be written as the sum and product of a given set of at least two natural numbers, {a1, a2, … , ak} is called a product-sum numb原创 2015-12-19 22:47:43 · 488 阅读 · 0 评论 -
project euler 89
Problem 89Roman numeralsFor a number written in Roman numerals to be considered valid there are basic rules which must be followed. Even though the rules allow some numbers to be expressed原创 2015-12-20 22:38:21 · 450 阅读 · 0 评论 -
project euler 117
Red, green, and blue tilesUsing a combination of black square tiles and oblong tiles chosen from: red tiles measuring two units, green tiles measuring three units, and blue tiles measuring four un原创 2016-01-05 21:26:03 · 287 阅读 · 0 评论 -
project euler 118
Pandigital prime setsUsing all of the digits 1 through 9 and concatenating them freely to form decimal integers, different sets can be formed. Interestingly with the set {2,5,47,89,631}, all of th原创 2016-01-05 21:27:08 · 841 阅读 · 0 评论 -
project euler 119
Digit power sumThe number 512 is interesting because it is equal to the sum of its digits raised to some power: 5 + 1 + 2 = 8, and 83 = 512. Another example of a number with this property is 614原创 2016-01-05 21:28:01 · 424 阅读 · 0 评论 -
project euler 120
Square remaindersLet r be the remainder when (a?1)n + (a+1)n is divided by a2.For example, if a = 7 and n = 3, then r = 42: 63 + 83 = 728 ≡ 42 mod 49. And as n varies, so too will r, but f原创 2016-01-05 21:28:56 · 299 阅读 · 0 评论 -
project euler 121
Disc game prize fundA bag contains one red disc and one blue disc. In a game of chance a player takes a disc at random and its colour is noted. After each turn the disc is returned to the bag, an原创 2016-01-05 21:29:38 · 467 阅读 · 0 评论 -
project euler 90
Problem 90Cube digit pairsEach of the six faces on a cube has a different digit (0 to 9) written on it; the same is done to a second cube. By placing the two cubes side-by-side in differen原创 2015-12-21 17:36:55 · 674 阅读 · 1 评论 -
project euler 91
Problem 91Right triangles with integer coordinatesThe points P (x1, y1) and Q (x2, y2) are plotted at integer co-ordinates and are joined to the origin, O(0,0), to form ΔOPQ.Ther原创 2015-12-21 17:37:58 · 411 阅读 · 0 评论 -
project euler 93
Problem 93Arithmetic expressionsBy using each of the digits from the set, {1, 2, 3, 4}, exactly once, and making use of the four arithmetic operations (+, −, *, /) and brackets/parentheses原创 2015-12-21 17:39:50 · 514 阅读 · 0 评论 -
project euler 43
Problem 43Sub-string divisibilityThe number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a rather interestin原创 2015-12-04 21:26:13 · 367 阅读 · 0 评论 -
project euler 49
Problem 49Prime permutationsThe arithmetic sequence, 1487, 4817, 8147, in which each of the terms increases by 3330, is unusual in two ways: (i) each of the three terms are prime, and, (ii原创 2015-12-04 21:34:22 · 395 阅读 · 0 评论 -
project euler 92
Problem 92Square digit chainsA number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before.For example,44原创 2015-12-21 17:38:52 · 349 阅读 · 0 评论 -
project euler 6
Sum square differenceThe 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 = 5原创 2015-12-04 20:35:42 · 235 阅读 · 0 评论 -
project euler 13
Large sumWork out the first ten digits of the sum of the following one-hundred 50-digit numbers.37107287533902102798797998220837590246510135740250463769376774900097126481248969700780504170原创 2015-12-04 20:45:53 · 597 阅读 · 0 评论