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!)
A345898 Odd powers of primes q such that each of (q-1)/2 and (q+1)/2 is either a power of prime or a semiprime. 2
3, 5, 7, 9, 11, 13, 17, 19, 27, 29, 31, 43, 53, 67, 163, 173, 243, 257, 283, 317, 653, 787, 907, 1867, 2083, 2187, 2693, 2803, 3413, 3643, 3677, 4253, 4363, 4373, 4723, 5443, 5717, 6197, 6547, 6653, 8563, 8573, 9067, 9187, 9403, 9643, 10733, 11443, 11587, 12163 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Peter J. Cameron, Pallabi Manna, and Ranjit Mehatari, On finite groups whose power graph is a cograph, arXiv:2106.14217 [math.GR], 2021. See Theorem 1.3 (a) pp. 3-4.
MATHEMATICA
q[n_] := n == 1 || PrimePowerQ[n] || PrimeOmega[n] == 2; Select[Range[3, 10^4, 2], PrimePowerQ[#] && q[(# - 1)/2] && q[(# + 1)/2] &] (* Amiram Eldar, Jun 29 2021 *)
PROG
(PARI) isor(q) = (q==1) || isprimepower(q) || (bigomega(q)==2);
isoka(q) = (q%2) && isprimepower(q) && isor((q-1)/2) && isor((q+1)/2);
CROSSREFS
Sequence in context: A050150 A062090 A358975 * A172095 A309361 A133854
KEYWORD
nonn
AUTHOR
Michel Marcus, Jun 29 2021
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 20 19:00 EDT 2024. Contains 372720 sequences. (Running on oeis4.)