login
Number of lattice points (x,y) in the region bounded by 0 < y < n*sin(x*Pi/n) for 0 < x < n.
1

%I #15 May 20 2021 10:25:36

%S 0,1,4,7,12,19,28,37,46,59,72,85,102,117,136,155,176,195,220,247,272,

%T 299,324,355,388,421,450,485,520,559,600,637,678,719,766,807,856,897,

%U 952,999,1052,1101,1156,1215,1266,1327,1380,1445,1504,1569,1630,1695,1764

%N Number of lattice points (x,y) in the region bounded by 0 < y < n*sin(x*Pi/n) for 0 < x < n.

%o (Python)

%o from sympy import sin, floor, pi

%o def A344421(n): return sum(floor(n*sin(x*pi/n))-int((n*sin(x*pi/n)).is_integer == True) for x in range(1,n)) # _Chai Wah Wu_, May 19 2021

%K nonn

%O 1,3

%A _Wesley Ivan Hurt_, May 17 2021

%E More terms from _Chai Wah Wu_, May 19 2021