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 A230653 #29 Feb 16 2024 17:25:42 %S A230653 49,99,1023,1681,1935,2499,8649,9603,20449,21903,23715,29583,30975, %T A230653 38024,43263,58563,60515,71824,74528,110223,130321,136899,145924, %U A230653 150543,154449,165649,181475,216224,224675,233288,243049,256035,258063,265225,294849,300303 %N A230653 Numbers k such that tau(k+1) - tau(k) = 3, where tau(k) = the number of divisors of k (A000005). %C A230653 Numbers k such that A051950(k+1) = 3. %C A230653 Numbers k such that A049820(k) - A049820(k+1) = 2. %C A230653 k or k+1 is a perfect square. - _David A. Corneth_, Feb 16 2024 %H A230653 David A. Corneth, <a href="/A230653/b230653.txt">Table of n, a(n) for n = 1..10000</a> (first 90 terms from Harvey P. Dale) %e A230653 99 is in the sequence because tau(100) - tau(99) = 9 - 6 = 3. %t A230653 Select[ Range[ 50000], DivisorSigma[0, # ] + 3 == DivisorSigma[0, # + 1] &] %t A230653 Position[Differences[DivisorSigma[0,Range[300400]]],3]//Flatten (* _Harvey P. Dale_, Jun 30 2022 *) %o A230653 (PARI) isok(n) = numdiv(n+1) - numdiv(n) == 3; \\ _Michel Marcus_, Oct 27 2013 %o A230653 (Python) %o A230653 from sympy import divisor_count as tau %o A230653 from itertools import count, islice %o A230653 def agen(): # generator of terms, using comment by _David A. Corneth_ %o A230653 for m in count(1): %o A230653 mm = m*m %o A230653 tmm = tau(mm) %o A230653 if tmm - tau(mm-1) == 3: yield mm-1 %o A230653 if tau(mm+1) - tmm == 3: yield mm %o A230653 print(list(islice(agen(), 36))) # _Michael S. Branicky_, Feb 16 2024 %Y A230653 Cf. A055927 (numbers n such that tau(n+1) - tau(n) = 1), A230115 (numbers n such that tau(n+1) - tau(n) = 2), A000005. %K A230653 nonn %O A230653 1,1 %A A230653 _Jaroslav Krizek_, Oct 27 2013 %E A230653 More terms from _Michel Marcus_, Oct 27 2013