OFFSET
1,1
COMMENTS
The associated value k = (2^(n-1) mod n) satisfy 1 < gcd(k-1, n) < n.
The selection criterion 2^(2n-1) == 2 (mod 2n) admits 3, 5, 7, 11, 13, 15, 17, etc.
Expect that the sequences will be infinite only if the criterion has the form 2^(2n-1) == 2^k (mod 2n) where k - an integer (1, 2, ...), otherwise the sequence will be limited. For example, for criterion 2^(2n-1) == 14 (mod 2n), 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
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