现代密码学及其应用(Cryptography and Secure Communication)-习题(Chapter 1)

1.1

  • Prove that there are N! distinct ways to arrange a sequence of N distinct symbols.
    ans: a n = n ∗ a n − 1 a_n=n*a_{n-1} an=nan1
  • How many nontrivial recreational cipher keys on an alphabet of size 26 are there?
    ans: N!-1
  • How many recreational cipher keys are there satisfying the requirement that no letter is represented by itself?
    思路:在这里插入图片描述
    ans:
    N ! − ( C N 1 ( N − 1 ) ! − C N 2 ( N − 2 ) ! + C N 3 ( N − 3 ) ! − . . . + . . . ) = N ! 2 ! − N ! 3 ! + N ! 4 ! − N ! 5 ! + . . . − . . . N!-(C_{N}^{1}(N-1)!-C_{N}^{2}(N-2)!+C_{N}^{3}(N-3)!-...+...) \\ = \frac{N!}{2!}-\frac{N!}{3!}+\frac{N!}{4!}-\frac{N!}{5!}+...-... N!(CN1(N1)!CN2(N2)!+CN3(N3)!...+...)=2!N!3!N!+4!N!5!N!+......
    当N足够大时,根据泰勒展开得到:
    上 式 ≈ N ! e 上式\approx \frac{N!}{e} eN!

1.2

  • Estimate the value of l o g 2 ( 256 ! ) log_2(256!) log2
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值