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!)
A178995 Numbers k such that 3^k (mod 2^k) is prime. 1
3, 5, 7, 9, 11, 20, 28, 62, 161, 204, 471, 505, 881, 1810, 1812, 2506, 3321, 6809, 9272, 15131, 17449, 25250, 27989, 36082, 53309, 64970, 66354, 69646 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
A002380(a(n)) = A178985(n). - Amiram Eldar, Jul 18 2021
MATHEMATICA
fQ[n_] := PrimeQ@ PowerMod[3, n, 2^n]; k = 1; lst = {}; While[k < 15001, If[fQ@ k, AppendTo[lst, k]]; k++]; lst
PROG
(PARI) for(n=1, 10^5, if(ispseudoprime((3^n)%(2^n)), print1(n, ", "))) \\ Felix Fröhlich, Jun 05 2014
CROSSREFS
Sequence in context: A033032 A103148 A211138 * A346604 A071240 A088049
KEYWORD
nonn,more
AUTHOR
Robert G. Wilson v, Jan 03 2011
EXTENSIONS
a(20)-a(23) from Felix Fröhlich, Jun 06 2014
a(24)-a(28) from Amiram Eldar, Jul 18 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 April 23 05:20 EDT 2024. Contains 371906 sequences. (Running on oeis4.)