OFFSET
1,1
COMMENTS
If n is in A001359, a(n) = prime(n)*(prime(n)+1)/2. - Robert Israel, Apr 21 2021
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = prime(n)*A069830(n). - Robert Israel, Apr 21 2021
EXAMPLE
a(4) = 56 which is 8*7 and 56 ==1 (mod 11)
MAPLE
for i from 1 to 200 do a := msolve(ithprime(i)*n=1, ithprime(i+1)); b[i] := rhs(convert(a, list)[1])*ithprime(i); od:seq(b[k], k=1..200);
# alternative
f:= (p, q)->(1/p mod q)*p:
seq(f(ithprime(i), ithprime(i+1)), i=1..100); # Robert Israel, Apr 21 2021
MATHEMATICA
p = 2; Table[q = NextPrime[p]; i = 2; While[Mod[y = i*p, q] != 1, i++]; p = q; y, {n, 43}] (* Jayanta Basu, Jul 02 2013 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Amarnath Murthy, Aug 04 2002
EXTENSIONS
Corrected and extended by Sascha Kurz, Aug 10 2002
STATUS
approved