A357576 Half area of the convex hull of {(x,y)| x,y integers and x^2 + y^2 < n^2}.
0, 2, 8, 17, 28, 46, 63, 87, 112, 142, 173, 204, 244, 287, 333, 378, 428, 485, 540, 602, 661, 737, 802, 869, 947, 1030, 1118, 1197, 1278, 1378, 1469, 1575, 1670, 1776, 1889, 1990, 2108, 2219, 2353, 2472, 2587, 2723, 2854, 3002, 3135, 3275, 3424, 3563, 3721
Offset: 1
Keywords
Examples
For n=4: 5+6+6 = 17 square units -> a(4)=17. _______ /|_|_|_|_|\ 5 |_|_|_|_|_|_| 6 |_|_|_|_|_|_| 6
Links
- Gerhard Kirchner, Examples for n <= 13.
Programs
-
Maxima
block(nmax: 40, a: makelist(0,i,1,nmax), a[1]:0, for n from 2 thru nmax do (x0:0, y0:n, xa:0, ya:n, m1:0, m0:2, ar:0, while xa
-
Python
from math import isqrt from sympy import convex_hull def A357576(n): return 0 if n == 1 else int(2*convex_hull(*[(0,0),(n-1,0)]+[(x,isqrt((n-x)*(n+x)-1)) for x in range(n)]).area) # Chai Wah Wu, Oct 23 2022
Comments