OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = prime(n+1) - A167770(n). - Jason Yuen, Sep 08 2024
EXAMPLE
-2^2 == 2 (mod 3); -3^2 == 1 (mod 5); -5^2 == 3 (mod 7); -7^2 == 6 (mod 11); etc.
MATHEMATICA
Mod[#[[2]]^2-#[[1]]^2, #[[2]]]&/@Partition[Prime[Range[60]], 2, 1] (* Harvey P. Dale, Nov 10 2014 *)
PROG
(Pari) vector(55, n, (-prime(n)^2)%prime(n+1)) \\ Joerg Arndt, Sep 09 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Marian Kraus, Oct 26 2005
EXTENSIONS
Name simplified by Joerg Arndt, Sep 09 2024
STATUS
approved