OFFSET
1,4
COMMENTS
LINKS
Stefano Spezia, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(6) = 3 since there are 3 positive integer solutions (x, y) satisfying the inequality x <= y, i.e., (2, 4), (3, 5) and (4, 7).
MATHEMATICA
Table[Sum[Boole[d<=Floor[(1+Sqrt[1+8n])/4]]+Boole[d<=Floor[(Sqrt[1+2n]-1)/2]], {d, Divisors[n]}], {n, 87}]
PROG
(PARI) T(n, k) = 1 + k*(n - 1) + (2*k - n - 1)*(k % 2); \\ A340804
a(n) = sum(i=1, 2*n+1, sum(k=1, i, T(i, k) == 2*n+1)); \\ Michel Marcus, Jan 25 2021
(PARI) a(n) = sumdiv(n, d, (d <= (1 + sqrt(1 + 8*n))\4) + (d <= (sqrt(1 + 2*n) - 1)\2)); \\ Michel Marcus, Jan 25 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Jan 22 2021
STATUS
approved