OFFSET
1,1
COMMENTS
It appears that A007520 is a subsequence. Up to 10^7 there are no composites in this sequence.
The first composite is a(17465859) = 1397357851; there are probably infinitely many. - Charles R Greathouse IV, Nov 12 2017
LINKS
Jonas Kaiser, On the relationship between the Collatz conjecture and Mersenne prime numbers, arXiv:1608.00862 [math.GM], 2016.
MATHEMATICA
Select[Range[2, 1300], Function[n, AllTrue[Join[Prime[Range@3]^(n - 1), {(2 n - 1) (2^((n - 1)/2)), 4 Ceiling[3 n/4] - 2, (2^((n + 1)/2) + Floor[n/4]*2^((n + 3)/2))}], Mod[#, n] == 1 &]]] (* Michael De Vlieger, Nov 15 2017 *)
PROG
(PARI) is(n) = n%2 && Mod(2, n)^(n-1)==1 && Mod(3, n)^(n-1)==1 && Mod(5, n)^(n-1)==1 && (2*n-1)*Mod(2, n)^((n-1)/2)== 1 && Mod(4*ceil((3/4)*n)-2, n)==1 && Mod(2, n)^((n+1)/2)+floor(n/4)*Mod(2, n)^((n+3)/2)==1
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonas Kaiser, Nov 12 2017
STATUS
approved