CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能 数学计算/工程计算 搜索资源 - coprime

搜索资源列表

  1. main.cpp_1

    0下载:
  2. This program calculate if two numbers are coprimes For given integer N (1<=N<=10^4) find amout of positive numbers not greater than N that coprime with N. Let us call two positive integers (say, A and B, for example) coprime if (and only
  3. 所属分类:Algorithm

    • 发布日期:2017-04-03
    • 文件大小:217.72kb
    • 提供者:Oscar
  1. a

    0下载:
  2. 在数论,对正整数n,欧拉函数是少于或等于n的数中与n互质的数的数目。 φ函数的值 通式:φ(x)=x(1-1/p1)(1-1/p2)(1-1/p3)(1-1/p4)…..(1-1/pn) 其中p1, p2……pn为x的所有质因数,x是不为0的整数。φ(1)=1(唯一和1互质的数就是1本身)。 (注意:每种质因数只一个。比如12=2*2*3  那么φ(12)=12*(1-1/2)*(1-1/3)=4)  若n是质数p的k次幂,φ(n)=p^k-p^(k-1)=(p-1)p^(k-1),因为除了
  3. 所属分类:Algorithm

    • 发布日期:2017-11-18
    • 文件大小:756byte
    • 提供者:koko
搜珍网 www.dssz.com