OFFSET
0,4
COMMENTS
Alternatively a(n) is the area of the largest rectangle with integer sides having a diagonal of length <= n.
a(n) = x*x or x*(x+1) for x=floor(n/sqrt(2)).
FORMULA
PROG
(PARI) a(n)={my(t=sqrtint(n^2\2)); if(2*t*(t + 1) < n^2, t + 1, t)*t} \\ Andrew Howroyd, Mar 24 2023
(PARI) a(n) = sqrtint(n^2\2) * ((sqrtint(2*n^2)+1)\2) \\ Andrew Howroyd, Mar 24 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
John Mason, Mar 24 2023
STATUS
approved