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!)
A296104 Numbers k such that 2^k == 3 (mod k-1). 3
2, 111482, 465794, 79036178, 1781269903308, 250369632905748, 708229497085910, 15673900819204068 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Also, numbers k such that 2^k - 2 is a Fermat pseudoprime, i.e., 2^k - 2 belongs to A015919 and A006935.
a(3) was found by McDaniel (1989).
Some larger terms (maybe not in order): 2338990834231272653582, 341569682872976768698011746141903924998969680638.
Discovered huge even PSP(2) numbers of the form 2*M(n), where n=p*q and M(n)=2^n-1, ensure that the following numbers are also even pseudoprimes of the form 2*M(p)*M(q): 2*M(37)*M(12589), 2*M(131)*M(17854891864360859951), 2*M(179)*M(1398713032993), 2*M(2111)*M(335494787819), 2*M(35267)*M(50508121). - Krzysztof Ziemak, Jan 01 2018
LINKS
W. L. McDaniel, Some Pseudoprimes and Related Numbers Having Special Forms, Math. Comp. 53:187 (1989), 407-409.
FORMULA
a(n) = A296370(n) + 1.
MATHEMATICA
k = 2; lst = {2}; While[k < 1000000001, If[ PowerMod[2, k, k -1] == 3, AppendTo[lst, k]]; k += 10; If[ PowerMod[2, k, k -1] == 3, AppendTo[lst, k]]; k += 2]; lst (* Robert G. Wilson v, Jan 01 2018 *)
PROG
(Python)
A296104_list = [n for n in range(2, 10**6) if pow(2, n, n-1) == 3 % (n-1)] # Chai Wah Wu, Dec 06 2017
(PARI) is_A296104(n) = Mod(2, n-1)^n == 3; \\ Iain Fox, Dec 07 2017
CROSSREFS
Sequence in context: A060069 A354177 A231612 * A170995 A319022 A003840
KEYWORD
nonn,more
AUTHOR
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 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)