This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A283364 #50 Oct 21 2024 09:00:11 %S A283364 1,2,3,4,5,6,7,9,11,13,17,19,23,31,61,101,127,167,199,347 %N A283364 Numbers m such that both numbers 2^m +- 1 have at most 2 distinct prime factors. %C A283364 If a(n) > 9 then a(n) is prime. Proof: If k = 2*m > 9 then 2^(2*m)-1 has at least 3 factors; being 3, (2^m - 1) / 3 and 2^m + 1 which excludes even numbers > 9. %C A283364 If k = 2*m + 1 > 9 is not prime then k = p*q, q, p > 3 so 2^(p*q) + 1 is divisible by 3, 2^p + 1 and 2^q + 1. If p = q then 2^(p^2) + 1 is divisible by 3, 2^p + 1 and (2^p^2 + 1) / (2^p + 1) > 2^p + 1. Which excludes odd composite numbers > 9 and completes the proof. [comments reworded by _David A. Corneth_, Nov 23 2019] %C A283364 Any further terms are > 1122. - _Lucas A. Brown_, Oct 21 2024 %t A283364 Select[Range@ 200, Times @@ Boole@ Map[PrimeNu@ # <= 2 &, 2^# + {-1, 1}] == 1 &] (* _Michael De Vlieger_, Mar 06 2017 *) %t A283364 Select[Range[350],Max[PrimeNu[2^#+{1,-1}]]<3&] (* _Harvey P. Dale_, Dec 23 2017 *) %o A283364 (PARI) isok(n) = omega(2^n+1)<=2 && omega(2^n-1)<=2; %o A283364 for(n=1, 347, if(isok(n)==1, print1(n,", "))); \\ _Indranil Ghosh_, Mar 06 2017 %Y A283364 Cf. A001221, A046799, A046800, A067886. %K A283364 nonn,more,hard %O A283364 1,2 %A A283364 _Vladimir Shevelev_, Mar 06 2017 %E A283364 More terms from _Peter J. C. Moses_, Mar 06 2017