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 A054992 #81 Jun 22 2025 03:57:12 %S A054992 1,1,2,1,2,2,2,1,4,3,2,2,2,3,4,1,2,4,2,2,4,3,2,3,4,4,6,2,3,6,2,2,5,4, %T A054992 5,4,3,4,4,2,3,6,2,3,7,5,3,3,3,7,6,3,3,6,6,3,5,3,4,4,2,5,7,2,6,6,3,4, %U A054992 5,7,3,5,3,5,7,4,6,10,2,3,10,5,6,5,4,5,5,4,4,11,6,2,5,4,5,3,5,6,9,6,2,9,3 %N A054992 Number of prime factors of 2^n + 1 (counted with multiplicity). %C A054992 The length of row n in A001269. %H A054992 Max Alekseyev, <a href="/A054992/b054992.txt">Table of n, a(n) for n = 1..1128</a> %H A054992 S. S. Wagstaff, Jr., <a href="https://homes.cerias.purdue.edu/~ssw/cun/index.html">The Cunningham Project</a> %F A054992 a(n) = A046051(2n) - A046051(n). - _T. D. Noe_, Jun 18 2003 %F A054992 a(n) = A001222(A000051(n)). - _Amiram Eldar_, Oct 04 2019 %e A054992 a(3) = 2 because 2^3 + 1 = 9 = 3*3. %t A054992 a[n_] := Module[{x=FactorInteger[2^n+1]}, Sum[x[[i]][[2]], {i, Length[x]}]] %t A054992 A054992[n_Integer] := PrimeOmega[2^n + 1]; Table[A054992[n], {n,103}] (* _Vladimir Joseph Stephan Orlovsky_, Jul 22 2011 *) %o A054992 (PARI) a(n)=bigomega(2^n+1) \\ _Charles R Greathouse IV_, Apr 29 2015 %Y A054992 bigomega(b^n+1): A057934 (b=10), A057935 (b=9), A057936 (b=8), A057937 (b=7), A057938 (b=6), A057939 (b=5), A057940 (b=4), A057941 (b=3), this sequence (b=2). %Y A054992 Cf. A000051, A002586, A002587, A003260, A001222, A001269, A001348, A054988, A054989, A054990, A054991, A000978. %Y A054992 Cf. A046051 (number of prime factors of 2^n-1). %Y A054992 Cf. A086257 (number of primitive prime factors). %K A054992 nonn %O A054992 1,3 %A A054992 Arne Ring (arne.ring(AT)epost.de), May 30 2000 %E A054992 Extended by _Patrick De Geest_, Oct 01 2000 %E A054992 Terms to a(500) in b-file from _T. D. Noe_, Nov 10 2007 %E A054992 Deleted duplicate (and broken) Wagstaff link. - _N. J. A. Sloane_, Jan 18 2019 %E A054992 a(500)-a(1062) in b-file from _Amiram Eldar_, Oct 04 2019 %E A054992 a(1063)-a(1128) in b-file from _Max Alekseyev_, Jul 15 2023, Mar 15 2025