OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = (prime(n)-2)*(prime(n)-1)/2 for n >= 3.
EXAMPLE
a(7) = 120 == 1 (mod 17), prime (7) = 17.
MAPLE
3, 10, seq((ithprime(i)-2)*(ithprime(i)-1)/2, i=3..50); # Robert Israel, Dec 23 2018
MATHEMATICA
Join[{3, 10}, Table[(Prime[n] - 2) (Prime[n] - 1) / 2, {n, 3, 50}]] (* Vincenzo Librandi, Dec 24 2018 *)
PROG
(Magma) [3, 10] cat [(NthPrime(n)-2)*(NthPrime(n)-1)/2: n in [3..50]]; // Vincenzo Librandi, Dec 24 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 10 2003
EXTENSIONS
More terms from David Wasserman, Jun 01 2005
Edited by Robert Israel, Dec 23 2018
STATUS
approved