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 A182590 #72 Dec 17 2022 06:05:38 %S A182590 1,1,1,1,1,1,1,1,2,2,1,1,2,2,2,1,2,1,1,2,3,2,1,2,2,1,2,3,3,1,2,1,2,2, %T A182590 3,2,2,3,2,2,4,3,3,2,3,3,3,1,4,4,3,3,2,3,2,3,5,2,2,1,2,3,4,2,3,2,3,1, %U A182590 4,3,3,3,4,5,3,1,5,3,2,3,4,2,3,2,4,3 %N A182590 Number of distinct prime factors of 2^n - 1 of the form k*n + 1. %C A182590 From _Thomas Ordowski_, Sep 08 2017: (Start) %C A182590 By Bang's theorem, a(n) > 0 for all n > 1, see A186522. %C A182590 Primes p such that a(p) = 1 are the Mersenne exponents A000043. %C A182590 Composite numbers m for which a(m) = 1 are A292079. %C A182590 a(n) >= A086251(n), where equality is for all prime numbers and for some composite numbers (among others for all odd prime powers p^k with k > 1). %C A182590 Theorem: if n is prime, then a(n) = A046800(n). %C A182590 Conjecture: if a(n) = A046800(n), then n is prime. %C A182590 Problem: is a(n) < A046800(n) for every composite n? (End) %H A182590 Charles R Greathouse IV, <a href="/A182590/b182590.txt">Table of n, a(n) for n = 2..1200</a> (terms 2..200 from Seppo Mustonen, terms 201..786 from Michel Marcus) %H A182590 S. Mustonen, <a href="http://www.survo.fi/papers/PrimeFactors2010.pdf">On prime factors of numbers m^n+-1</a>, 2010. %H A182590 Seppo Mustonen, <a href="/A182590/a182590.pdf">On prime factors of numbers m^n+-1</a> [Local copy] %e A182590 For n=10 the prime factors of 2^n - 1 = 1023 are 3, 11 and 31, and 11 = n+1, 31 = 3n+1. Thus a(10)=2. %t A182590 m = 2; n = 2; nmax = 200; %t A182590 While[n <= nmax, {l = FactorInteger[m^n - 1]; s = 0; %t A182590 For[i = 1, i <= Length[l], %t A182590 i++, {p = l[[i, 1]]; %t A182590 If[IntegerQ[(p - 1)/n] == True, s = s + l[[i, 2]]];}]; %t A182590 a[n] = s;} n++;]; %t A182590 Table[a[n], {n, 2, nmax}] %o A182590 (PARI) a(n) = my(f = factor(2^n-1)); sum(k=1, #f~, ((f[k,1]-1) % n)==0); \\ _Michel Marcus_, Sep 10 2017 %Y A182590 Cf. A046800, A086251, A186522. %K A182590 nonn %O A182590 2,9 %A A182590 _Seppo Mustonen_, Nov 22 2010 %E A182590 Name edited by _Thomas Ordowski_, Sep 19 2017