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 A030513 #87 Aug 16 2024 20:47:41 %S A030513 6,8,10,14,15,21,22,26,27,33,34,35,38,39,46,51,55,57,58,62,65,69,74, %T A030513 77,82,85,86,87,91,93,94,95,106,111,115,118,119,122,123,125,129,133, %U A030513 134,141,142,143,145,146,155,158,159,161,166,177,178,183,185,187 %N A030513 Numbers with 4 divisors. %C A030513 Essentially the same as A007422. %C A030513 Numbers which are either the product of two distinct primes (A006881) or the cube of a prime (A030078). %C A030513 4*a(n) are the solutions to A048272(x) = Sum_{d|x} (-1)^d = 4. - _Benoit Cloitre_, Apr 14 2002 %C A030513 Since A119479(4)=3, there are never more than 3 consecutive integers in the sequence. Triples of consecutive integers start at 33, 85, 93, 141, 201, ... (A039833). No such triple contains a term of the form p^3. - _Ivan Neretin_, Feb 08 2016 %C A030513 Numbers that are equal to the product of their proper divisors (A007956) (proof in Sierpiński). - _Bernard Schott_, Apr 04 2022 %D A030513 Wacław Sierpiński, Elementary Theory of Numbers, Ex. 2 p. 174, Warsaw, 1964. %H A030513 R. J. Mathar, <a href="/A030513/b030513.txt">Table of n, a(n) for n = 1..1000</a> %H A030513 R. J. Mathar, <a href="/A030513/a030513.mp.txt">Maple programs for A030638, A030637, A030636, A030635, A030634, A030633, A030632, A030631, A030630, A030629, A030628, A030627, A030626, A030516, A030515, A030514, A030513</a> %F A030513 {n : A000005(n) = 4}. - _Juri-Stepan Gerasimov_, Oct 10 2009 %t A030513 Select[Range[200], DivisorSigma[0,#]==4&] (* _Harvey P. Dale_, Apr 06 2011 *) %o A030513 (PARI) is(n)=numdiv(n)==4 \\ _Charles R Greathouse IV_, May 18 2015 %o A030513 (Magma) [n: n in [1..200] | DivisorSigma(0, n) eq 4]; // _Vincenzo Librandi_, Jul 16 2015 %o A030513 (Python) %o A030513 from math import isqrt %o A030513 from sympy import primepi, integer_nthroot, primerange %o A030513 def A030513(n): %o A030513 def f(x): return int(n+x-primepi(integer_nthroot(x,3)[0])+(t:=primepi(s:=isqrt(x)))+(t*(t-1)>>1)-sum(primepi(x//k) for k in primerange(1, s+1))) %o A030513 m, k = n, f(n) %o A030513 while m != k: %o A030513 m, k = k, f(k) %o A030513 return m # _Chai Wah Wu_, Aug 16 2024 %Y A030513 Cf. A000005, A007422, A007956, A030515, A035533, A048272, A119479. %Y A030513 Equals the disjoint union of A006881 and A030078. %K A030513 nonn,easy,nice %O A030513 1,1 %A A030513 _Jeff Burch_ %E A030513 Incorrect comments removed by _Charles R Greathouse IV_, Mar 18 2010