Y by fungarwai, Adventure10
Determine the rightmost three digits of the number
Happy Thanksgiving! Please note that there are no classes November 25th-December 1st.
sum=0;n=1000;m=1000; for k in range(1,n+1): p=1 for t in range(1,k+1): p=(p*k) % m sum=(sum+p) % m print(sum)
p=2;N=500;m=8; for r in range(1,p+1): sum=0 for k in range(1,N+1): K=p*k-p+r q=1 for t in range(1,K+1): q=(q*K) % m sum=(sum+q) % m print("r=",r,",sum=",sum)
p=5;N=200;m=125; for r in range(1,p+1): sum=0 for k in range(1,N+1): K=p*k-p+r q=1 for t in range(1,K+1): q=(q*K) % m sum=(sum+q) % m print("r=",r,",sum=",sum)
Something appears to not have loaded correctly.