OFFSET
1,1
COMMENTS
The associated value m = (2^(k-1) mod k) satisfy 1 < gcd(m-1, k) < k.
The selection criterion 2^(2k-1) == 2 (mod 2k) admits 3, 5, 7, 11, 13, 15, 17, etc.
Expect that the sequences will be infinite only if the criterion has the form 2^(2k-1) == 2^m (mod 2k) where m - an integer (1, 2, ...), otherwise the sequence will be limited. For example, for criterion 2^(2k-1) == 14 (mod 2k), the sequence begins 9, 27, 7281, 19143.
LINKS
Robert Israel, Table of n, a(n) for n = 1..1000
MAPLE
select(n -> 2 &^ (2*n-1) - 2 mod (2*n) = 0 and 2 &^ (n-1) -1 mod n <> 0, [seq(n, n=3..10^5, 2)]); # Robert Israel, Nov 06 2017
MATHEMATICA
Select[Range[30000], PowerMod[2, 2#-1, 2#]==2&&PowerMod[2, #-1, #]!=1&] (* Harvey P. Dale, Jul 06 2025 *)
PROG
(PARI) alist(m) = {for (n=1, m, v = 2^(2*n-1); if ((v % (2*n) == 2), k = 2^(n-1) % n; if (k > 1, print1(n, ", "); ); ); ); } \\ Michel Marcus, Jan 24 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Alzhekeyev Ascar M, Dec 06 2010
EXTENSIONS
More terms from Michel Marcus, Jan 24 2013
STATUS
approved
