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 A179952 #20 Jan 19 2024 04:57:17 %S A179952 0,0,1,0,0,1,0,1,1,0,0,1,0,0,2,1,0,1,0,0,1,0,0,3,0,0,1,0,0,2,0,1,1,0, %T A179952 1,1,0,0,1,1,0,1,0,0,2,0,0,4,0,0,1,0,0,1,0,1,1,0,0,2,0,0,2,1,0,1,0,0, %U A179952 1,1,0,3,0,0,2,0,0,1,0,2,1,0,0,1,0,0,1,1,0,2,0,0,1,0,0,4,0,0,2,0,0,1,0,1,3 %N A179952 Add 1 to all the divisors of n. a(n) = number of perfect squares in the set. %C A179952 Number of k>=2 such that both k-1 and k+1 divide n. - _Joerg Arndt_, Jan 06 2015 %H A179952 Michael De Vlieger, <a href="/A179952/b179952.txt">Table of n, a(n) for n = 1..10000</a> %F A179952 G.f.: Sum_{n>=2} x^(n^2-1) / (1 - x^(n^2-1)). - _Joerg Arndt_, Jan 06 2015 %F A179952 Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 3/4. - _Amiram Eldar_, Jan 19 2024 %e A179952 a(24)=3 because the divisors of 24 are 1,2,3,4,6,8,12,24. Adding one to each gives 2,3,4,5,7,9,13,25 and of those 4,9 and 25 are perfect squares. %p A179952 N:= 1000: # to get a(1) to a(N) %p A179952 A:= Vector(N): %p A179952 for n from 2 to floor(sqrt(N+1)) do %p A179952 for k from 1 to floor(N/(n^2-1)) do %p A179952 A[k*(n^2-1)]:= A[k*(n^2-1)]+1 %p A179952 od %p A179952 od; %p A179952 convert(A,list); # _Robert Israel_, Jan 06 2015 %t A179952 a179952[n_] := Count[Sqrt[Divisors[#] + 1], _Integer] & /@ Range@n; a179952[105] (* _Michael De Vlieger_, Jan 06 2015 *) %o A179952 (PARI) a(n) = sumdiv(n, d, issquare(d+1)); \\ _Michel Marcus_, Jan 06 2015 %K A179952 nonn %O A179952 1,15 %A A179952 _Jeff Burch_, Aug 03 2010