OFFSET
5,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 5..1000
EXAMPLE
a(1)=11^2 mod(2)=121 mod(2)=1, a(2)=13^2 mod(3)=169 mod(3)=1, a(3)=17^2 mod(5)=289 mod(5)=4, a(4)=19^2 mod(7)=361 mod(7)=4,...
MAPLE
A179399 := proc(n) ithprime(n)^2 mod ithprime(n-4); end proc: # R. J. Mathar, Jan 09 2011
MATHEMATICA
Table[PowerMod[Prime[n], 2, Prime[n-4]], {n, 5, 80}] (* Harvey P. Dale, Aug 04 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Umut Uludag, Jan 07 2011
STATUS
approved