学习笔记《Base of Number theory》

lcm, gcd

  • gcd,greatest common divisor(最大公约数)
  • lcm,least common multiple(最小公倍数)

Euclid's Algorithm

Euler's totient function(phi function)

ϕ(n) 称为 Euler's totient function ,是计算一个自然数有多少个比他小的互质的自然数的个数,ϕ(12) = 4,ϕ(30) = 8

In number theory, Euler's totient function counts the positive integers up to a given integer n that are relatively prime to n. It is written using the Greek letter phi as φ(n) or ϕ(n), and may also be called Euler's phi function. It can be defined more formally as the number of integers k in the range 1 ≤ k ≤ n for which the greatest common divisor gcd(n, k) is equal to 1. The integers k of this form are sometimes referred to as totatives of n.

For example, the totatives of n = 9 are the six numbers 1, 2, 4, 5, 7 and 8. They are all relatively prime to 9, but the other three numbers in this range, 3, 6, and 9 are not, because gcd(9, 3) = gcd(9, 6) = 3 and gcd(9, 9) = 9. Therefore, φ(9) = 6. As another example, φ(1) = 1 since for n = 1 the only integer in the range from 1 to n is 1 itself, and gcd(1, 1) = 1.

Euler's totient function is a multiplicative function, meaning that if two numbers m and n are relatively prime, then φ(mn) = φ(m)φ(n). This function gives the order of the multiplicative group of integers modulo n (the group of units of the ring ℤ/nℤ).[6] It also plays a key role in the definition of the RSA encryption system.

Prime-counting function

Prime number Theorem

Prime number Theorem 以后会专门的深入~

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,438评论 0 10
  • 那是我们的第一次见面,彼此都留下了不可磨灭的记忆。
    5432下铺虚荣心阅读 130评论 0 0
  • 据说今晚将上演“月全食血月+超级月亮+蓝月”三景合一的天文奇观!而且是一百五十二年来首次。 大学就是物理教育专业毕...
    悟语wuyu阅读 442评论 1 5
  • 内心在日狗,表面很平静
    白琉璃鹿阅读 110评论 0 0
  • 离杭三月有余,惺惺念念的不是南山路的灯火、九溪烟树的碧波,亦或御街的繁华、西溪的且住,而是梅岭小居的梅酒,...
    5566晓今阅读 1,059评论 8 4