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!)
A303531 Numbers k such that both k and (k+1)/2 are Fermat pseudoprimes to base 2 (A001567). 3
31417, 130561, 41541241, 208969201, 224074369, 392099401, 851934601, 5186365801, 33847795741, 65096562721, 91625968981, 104070261901, 111794455501, 165814673473, 180007280041, 184020124201, 276032114281, 408164260141, 620052300421, 1240013784241, 1244667503017 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Numbers (k+1)/2 are listed in A298758.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..3031 (terms below 2^64)
FORMULA
a(n) = 2*A298758(n) - 1.
MATHEMATICA
Select[Cases[Import["https://oeis.org/A001567/b001567.txt", "Table"], {_, _}][[;; , 2]], !PrimeQ[(#+1)/2] && PowerMod[2, (#-1)/2, (#+1)/2] == 1 &] (* Amiram Eldar, Nov 09 2023 *)
PROG
(PARI) isF(n) = {Mod(2, n)^n==2 && !isprime(n) && n>1};
isok(n) = (n%2) && isF(n) && isF((n+1)/2); \\ Michel Marcus, Apr 26 2018
CROSSREFS
Subsequence of A001567 and of A217465.
Sequence in context: A274045 A277171 A258577 * A251006 A113846 A321054
KEYWORD
nonn
AUTHOR
Max Alekseyev, Apr 25 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 April 19 02:28 EDT 2024. Contains 371782 sequences. (Running on oeis4.)