Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #14 Jan 02 2024 02:48:01
%S 1,1,1,2,1,1,1,2,1,2,1,2,1,1,1,2,1,1,2,3,1,1,1,2,1,1,1,2,1,2,2,2,1,1,
%T 1,2,1,2,1,3,1,1,1,2,1,2,1,2,1,2,1,2,1,1,1,2,2,1,1,3,1,2,1,3,1,1,1,2,
%U 1,2,1,2,1,1,1,3,1,1,1,3,1,1,1,2,2,1,1,2,1,2,1,3,2,1,2,2,1,1,1,3
%N Number of centered triangular numbers dividing n.
%H Robert Israel, <a href="/A300409/b300409.txt">Table of n, a(n) for n = 1..10000</a>
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/CenteredTriangularNumber.html">Centered Triangular Number</a>.
%H <a href="/index/Ce#CENTRALCUBE">Index entries for sequences related to centered polygonal numbers</a>.
%F G.f.: Sum_{k>=0} x^(3*k*(k+1)/2+1)/(1 - x^(3*k*(k+1)/2+1)).
%F Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = A306324 = 1.5670651... . - _Amiram Eldar_, Jan 02 2024
%e a(20) = 3 because 20 has 6 divisors {1, 2, 4, 5, 10, 20} among which 3 divisors {1, 4, 10} are centered triangular numbers.
%p N:= 100: # for a(1)..a(N)
%p V:= Vector(N,1):
%p for k from 1 do
%p m:= 3*k*(k+1)/2+1;
%p if m > N then break fi;
%p r:= [seq(i,i=m..N,m)];
%p V[r]:= map(t->t+1, V[r]);
%p od:
%p convert(V,list); # _Robert Israel_, Mar 05 2018
%t nmax = 100; Rest[CoefficientList[Series[Sum[x^(3 k (k + 1)/2 + 1)/(1 - x^(3 k (k + 1)/2 + 1)), {k, 0, nmax}], {x, 0, nmax}], x]]
%Y Cf. A005448, A007862, A279495, A300410, A306324.
%K nonn
%O 1,4
%A _Ilya Gutkovskiy_, Mar 05 2018