OFFSET
1,8
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: Sum_{n>=1} x^(n^2+2*n)/(1-x^n). - Vladeta Jovovic, May 13 2008
a(n) = floor(A000005(n)/2) - 1 if n is oblong (A002378); and floor(A000005(n)/2) otherwise. - Max Alekseyev, Oct 09 2023
MAPLE
with(numtheory): for n from 1 to 200 do it := divisors(n): count := 0: for i from 1 to nops(it) do if it[i]>=3 and 1<=n/it[i] and n/it[i]<=(it[i]-2) then count := count+1 fi :od: printf(`%d, `, count) od:
MATHEMATICA
a[n_] := DivisorSum[n, 1&, # > 2 && n/# < #-1 &]; Array[a, 100] (* Amiram Eldar, Jun 11 2019 *)
PROG
(PARI) a(n) = sumdiv(n, d, (d>=3) && (q=n/d) && (q>=1) && (q<=d-2)); \\ Michel Marcus, Nov 05 2014
(PARI) a033831(n) = numdiv(n)\2 - issquare(4*n+1); \\ Max Alekseyev, Oct 09 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
EXTENSIONS
More terms from James A. Sellers, Jun 20 2000
STATUS
approved