OFFSET
1,3
LINKS
David Radcliffe, Table of n, a(n) for n = 1..1000
David Radcliffe, Python script to calculate a(n)
FORMULA
a(n) = A000537(n-1) + A113751(n). - T. D. Noe, Nov 09 2005 [corrected by David Radcliffe, Feb 06 2020]
a(n) = n*(n-1)^2*(2n-1)/6 + 2*Sum_{a,b>0, 0<s<r<n, gcd(r,s)=1} max(n-a*s-b*r,0)*max(n-a*r-b*s,0). - David Radcliffe, Feb 06 2020
EXAMPLE
a(3) = 10 because on the 3 X 3 grid there are four 1 X 1 rectangles, two 1 X 2s, two 2 X 1's, one 2 X 2 and one 45-degree rectangle, sqrt(2) X sqrt(2).
CROSSREFS
KEYWORD
nonn
AUTHOR
Yuval Dekel (dekelyuval(AT)hotmail.com), Jul 06 2003
EXTENSIONS
Edited by Don Reble, Nov 05 2005
STATUS
approved