Highly divisible triangular number The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1
原创
2022-06-10 00:41:43
75阅读
欧拉计划 Problem 1 Multiples of 3 and 5 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 m ...
转载
2021-11-02 09:18:00
253阅读
2评论
python继承与多态
原创
2023-01-30 16:10:43
90阅读
定义和简单性质欧拉函数在OI中是个非常重要的东西,不知道的话会吃大亏的.欧拉函数用希腊字母φ表示,φ(N)表示N的欧拉函数.对φ(N)的值,我们可以通俗地理解为小于N且与N互质的数的个数(包含1).欧拉函数的一些性质:1.对于素数p, φ(p)=p-1,对于对两个素数p,q φ(pq)=pq-1欧拉函数是积性函数,但不是完全积性函数.2.对于一个正整数N的素数幂分解N=P1^q
转载
2024-06-04 20:49:24
98阅读
题目8:找出这个1000位数字中连续13个数字乘积的最大值。找出下面这个1000位的整数中连续13个数字的最大乘积。73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694...
转载
2015-07-28 20:57:00
53阅读
1.什么是欧拉计划2.简单介绍3.访问不上去怎么办4.第一题的代码编写5.代码的优化
题目4:找出由两个三位数乘积构成的回文。 一个回文数指的是从左向右和从右向左读都一样的数字。最大的由两个两位数乘积构成的回文数是9009 = 91 * 99. 找出最大的有由个三位数乘积构成的回文数。 源码 STDMETHODIMP COuLa::Test4(int iMaxNumber) { //
转载
2016-01-27 18:56:00
104阅读
2评论
世界上最伟大的十个公式:欧拉公式、麦克斯韦方程组、牛顿第二定律、勾股定理、薛定谔方程、质能方程、德布罗意方程组、1+1=2、傅立叶变换、圆的周长公式。欧拉公式的巧妙之处在于,它没有任何多余的内容,将数学中最基本的e、i、π放在了同一个式子中,同时加入了数学也是哲学中最重要的0和1,再以简单的加号相连。高斯曾经说:“一个人第一次看到这个公式而不感到它的魅力,他不可能成为数学家。” 虽然不敢肯定她是世
转载
2024-03-15 10:33:10
59阅读
Longest Collatz sequence 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
原创
2022-06-10 00:41:24
91阅读
Large sum Work out the first ten digits of the sum of the following one hundred 50 digit numbers. 大和 计算出以下一百个50位数的和的前十位数字。 解题思路 目前想到的就是用高精度加法模拟。 100个5
原创
2022-06-10 00:41:32
79阅读
Summation of primes 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
原创
2022-06-10 00:41:49
37阅读
Largest product in a grid In 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
原创
2022-06-10 00:41:56
70阅读
Special Pythagorean triplet A Pythagorean triplet is a set of three natural numbers, $a using namespace std; int main() { for (int i = 1; i <= 1000/3;
原创
2022-06-10 00:42:01
70阅读
Sum square difference The sum of the squares of the first ten natural numbers is, $$1^2 + 2^2 + \cdots + 10^2 = 385$$ The square of the sum of the fir
原创
2022-06-10 00:42:07
46阅读
Largest prime factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? 最大质因数 13195的所有质因数为5
原创
2022-06-10 00:42:30
107阅读
问题描述英语原文Even Fibonacci numbersEach 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
转载
2013-05-01 23:25:00
100阅读
2评论
Lattice paths 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 bott
原创
2022-06-10 00:41:13
46阅读
Largest product in a series The four adjacent digits in the 1000 digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. Find the thirte
原创
2022-06-10 00:42:13
88阅读
Multiples of 3 and 5 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.
原创
2022-06-10 00:42:50
74阅读
Power digit sum $2^{15} = 32768$ and the sum of its digits is $3 + 2 + 7 + 6 + 8 = 26$. What is the sum of the digits of the number $2^{1000}$? 幂的数字和
原创
2022-06-10 00:41:18
38阅读