login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A070173
Numbers k such that k! and 2^k+1 are relatively prime.
1
1, 2, 4, 8, 12, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 128, 136, 144, 152, 160, 176, 184, 192, 200, 208, 224, 232, 248, 256, 272, 288, 304, 320, 352, 368, 384, 400, 416, 448, 464, 480, 496, 512, 544, 576, 592, 608, 640, 656, 688, 704, 752, 768
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[1000], CoprimeQ[#!, 2^#+1]&]
PROG
(PARI) for(n=1, 1255, if(gcd(n!, 2^n+1)==1, print1(n, ", ")))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 06 2002
STATUS
approved