最近学校在教“信息安全数学基础”这门课程, 目前讲到了数论的基础知识. 我选择了 Kenneth H. Rosen 著作的《初等数论及其应用》作为辅助教材, 阅读过程中理解了一些有趣的结论, 证明和习题.
“Imagine there are eight roses in your garden; you inspect them one-by-one randomly. Take the first three roses you encounter as sample and go on. Once you encounter a rose more beautiful than any of the first three roses, you pick it up and stop. How likely is it that the one you picked up is the most beautiful one?”
I have finished reading the first two chapters of Concrete Mathematics. Here are my notes on the book and solutions to the exercises.
整理了 Miller–Rabin 素性测试的原理及实现方法.