The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A317507 Numbers k whose generalized Wilson quotient A157249(k) is prime. 1
1, 5, 7, 8, 10, 11, 29, 62, 486, 614, 773, 1321, 1906, 2621 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The corresponding primes are 2, 5, 103, 13, 19, 329891, ...
Supersequence of A050299 (except for 1, the prime terms of this sequence).
No more terms below 10^4.
LINKS
MATHEMATICA
p[n_] := Times @@ Select[Range[n], CoprimeQ[n, #] &]; e[1 | 2 | 4] = 1; e[n_] := (fi = FactorInteger[n]; If[MatchQ[fi, {{(p_)?OddQ, _}} | {{2, 1}, {_, _}}], 1, -1]); a[n_] := (p[n] + e[n])/n; n = 1; s={}; Do[If[PrimeQ[a[n]], AppendTo[s, n]], {n, 1, 1000}]; s (* after Jean-François Alcover at A157249 *)
PROG
(PARI) phito(n) = prod(k=2, n-1, k^(gcd(k, n)==1)); \\ A001783
is(n) = if(n%2, isprimepower(n) || n==1, n==2 || n==4 || (isprimepower(n/2, &n) && n>2)); \\ A033948
e(n) = if (is(n), 1, -1);
gw(n) = (phito(n)+e(n))/n;
isok(n) = isprime(gw(n)); \\ Michel Marcus, Oct 28 2018
CROSSREFS
Sequence in context: A192067 A347653 A288735 * A304433 A080707 A059612
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Sep 29 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 05:56 EDT 2024. Contains 372549 sequences. (Running on oeis4.)