OFFSET
1,2
LINKS
Bert Dobbelaere, Table of n, a(n) for n = 1..100
Eric Weisstein's World of Mathematics, Visible Point
EXAMPLE
a(1) = 1 because there are 15 visible points from every point on the grid.
a(2) = 5 because 65 points are visible from every vertex of the grid, 73 points are visible from the midpoint of every edge of the grid, 77 points are visible from the midpoint of every face of the grid, 79 points are visible from the midpoint of every cell of the grid, and 80 points are visible from the middle of the grid.
PROG
(PARI) \\ n = side length, d = dimension
cdvps(n, d) ={my(m=Map());
forvec(u=vector(d, i, [0, n\2]),
my(c=0); forvec(v=[[t-n, t]|t<-u], c+=(gcd(v)==1));
mapput(m, c, 1), 1);
#m; }
a(n) = cdvps(n, 4)
CROSSREFS
KEYWORD
nonn
AUTHOR
Torlach Rush, Dec 23 2020
EXTENSIONS
More terms from Bert Dobbelaere, Mar 20 2021
STATUS
approved