OFFSET
3,5
LINKS
Harvey P. Dale, Table of n, a(n) for n = 3..1000
EXAMPLE
a(1) = 5^2 mod 2 = 25 mod 2 = 1;
a(2) = 7^2 mod 3 = 49 mod 3 = 1;
a(3) = 11^2 mod 5 = 121 mod 5 = 1;
a(4) = 13^2 mod 7 = 169 mod 7 = 1;
a(5) = 17^2 mod 11 = 289 mod 11 = 3.
MAPLE
A179397 := proc(n) ithprime(n)^2 mod ithprime(n-2); end proc: # R. J. Mathar, Jan 09 2011
MATHEMATICA
PowerMod[#[[3]], 2, #[[1]]]&/@Partition[Prime[Range[80]], 3, 1] (* Harvey P. Dale, Oct 21 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Umut Uludag, Jan 07 2011
STATUS
approved