OFFSET
1,1
COMMENTS
All composites in this sequence are 2-pseudoprimes, A001567.
The sequence contains all Mersenne numbers, A001348, k=2^p-1 for primes p (for which b=(k-1)/p). Correspondingly, the composites in this sequence contain all terms of A065341.
The sequence also contains composites of the form 2^A001567(j) - 1, which do not belong to A065341. The existence of composites in the sequence that are not of the form 2^x-1 is unclear.
The sequence contains A125854 as a subsequence.
MAPLE
isA186645 := proc(n)
if Power(2, n-1) mod n = 1 then
x := Power(2, n-1) mod (n^2) ;
b := (x-1)/n ;
if b>0 then if modp(n-1, b) = 0 then true; else false; end if;
else false;
end if;
else
false;
end if;
end proc:
for n from 1 do if isA186645(n) then printf("%d, \n", n); end if; end do: # R. J. Mathar, Mar 09 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Alzhekeyev Ascar M, Feb 25 2011
EXTENSIONS
Edited and more terms added by Max Alekseyev, Mar 14 2011
STATUS
approved