centergon(n)

description

                 
 

A family of convex polygons that still contains the origin if any single vertex is removed

references

11

dim

2

keywords

centered, simple, simplicial

n_vertices

n

vertices


if ($n %2 == 0){
    row(1,0,($n**2)/2-2*$n);
    $n--;
}
	
for ($i=0; $i< $n; $i++){

    $x=ceil(($n-1)/2)-$i;
    row(1,$x,2*$x**2-3);
}


returnmatrix();