-
3推荐
616. 有创造力的数
题目 Problem 616: Creative numbers Alice plays the following game, she starts with a list of integers L and on each step she can either: …...
-
3推荐
617. 镜像幂序列
题目 Problem 617. Mirror Power Sequence For two integers n, e > 1, we define a(n,e)-MPS (Mirror Power Sequence) to be an infinite seque…...
-
3推荐
618. 素因子和固定的数
题目 Problem 618: Numbers with a given prime factor sum Consider the numbers 15, 16 and 18: 15 = 3×5 and 3+5 = 8. 16 = 2×2×2×2 and 2+2+2+2…...
-
3推荐
030. 数字的五次方
题目 Problem 30: Digit fifth powers Surprisingly there are only three numbers that can be written as the sum of fourth powers of their dig…...
-
3推荐
水仙花数
在数论中,水仙花数,也称为超完全数字不变数,用来描述一个 n 位非负整数,其各位数字的 n 次方和等于该数本身。若将条件放宽,一个 n 位数,其各个数的 m 次方和等于该数,这样的数称为完全数字不变数。 高德纳教授写了一个 CWEB 程序… ...
评论了
以下命令解决 Lenovo 昭阳 K3 笔记本电脑安装 Arch Linux 后不识别声卡的问题: $ sudo pacman -S sof-firmware
在 gp 中输入 ? if 得到: if(a,{seq1},{seq2}): if a is nonzero, seq1 is evaluated, otherwise seq2. seq1 and seq2 are optional, and if seq2 is omitted, the preceding comma can be omitted also.
这是一个递归函数
如果 n >= 2 则结果为 (n^2-n)*(a(n-1)+(n-1)/2*a(n-2))
如果 n<2 则结果为 n==0,也就是说 n == 0 时结果为 1,n == 1 时结果为 0