HDU2256&HDU5451(矩阵快速幂)

版权声明:欢迎大佬指正! https://blog.csdn.net/sinat_36215255/article/details/82078637

求(5+2\sqrt{6})^n

引用博客

https://blog.csdn.net/qq_15714857/article/details/47705581

https://blog.csdn.net/qq_15714857/article/details/48583019

HDU2256时为什么不能直接用An+Bn \sqrt{6}求F(n) ,因为Bn求时取模了,再乘一个小数,再取模之后,不是原来的值的取模,所以此时的Bn是不可用的,

猜你喜欢

转载自blog.csdn.net/sinat_36215255/article/details/82078637