与‘数论-费马小定理’有关的日志

poj3641

maksyuki 发表于 oj 分类,标签:
0
poj3641

Pseudoprime numbers

Fermat's theorem states that for any prime number p and for any integer a > 1, ap = a (mod p). That is, if we raise a to the pth power and divide by p, the remainder is a. Some (but not very many) non-prime values of p, known >>继续阅读

hdu4549

maksyuki 发表于 oj 分类,标签: ,
0
hdu4549

M斐波那契数列

Problem Description

M斐波那契数列F[n]是一种整数数列,它的定义如下:

F[0] = a

F[1] = b >>继续阅读