OFFSET
1,12
COMMENTS
Number of r X s rectangles with integer sides such that r < s, r + s = 2n, r | s and (s - r) | (s * r). - Wesley Ivan Hurt, Apr 24 2020
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
0 <= a(n) <= a(m*n) for all m>0;
a(n) = Sum_{i=1..n-1} chi((2*n-i)/i) * chi(i*(2*n-i)/(2*n-2*i)), where chi(n) = 1 - ceiling(n) + floor(n). - Wesley Ivan Hurt, Apr 24 2020
MAPLE
A099475:= proc(n)
local d;
d:= numtheory:-divisors(n);
nops(d intersect map(`+`, d, 2))
end proc:
map(A099475, [$1..1000]); # Robert Israel, Jun 19 2015
MATHEMATICA
a[n_] := DivisorSum[n, Boole[Divisible[n, #+2]]&]; Array[a, 105] (* Jean-François Alcover, Dec 07 2015 *)
PROG
(PARI) A099475(n) = { sumdiv(n, d, ! (n % (d+2))) } \\ Michel Marcus, Jun 18 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Oct 18 2004
STATUS
approved