login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A331773 a(n) = Sum_{-n<i<n, -n<j<n, gcd{i,j}=2} (n-|i|)*(n-|j|)/8. 2
0, 0, 2, 6, 15, 28, 53, 86, 137, 200, 299, 418, 571, 748, 997, 1282, 1639, 2040, 2545, 3106, 3767, 4492, 5401, 6394, 7523, 8744, 10225, 11822, 13625, 15556, 17743, 20074, 22685, 25456, 28675, 32086, 35803, 39724, 44209, 48934, 54067, 59456, 65365 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
M. A. Alekseyev, M. Basova, and N. Yu. Zolotykh. On the minimal teaching sets of two-dimensional threshold functions. SIAM Journal on Discrete Mathematics 29:1 (2015), 157-165. doi:10.1137/140978090. See p. 158.
MAPLE
VR := proc(m, n, q) local a, i, j; a:=0;
for i from -m+1 to m-1 do for j from -n+1 to n-1 do
if gcd(i, j)=q then a:=a+(m-abs(i))*(n-abs(j)); fi; od: od: a; end;
[seq(VR(n, n, 2)/8, n=1..50)];
MATHEMATICA
A331773[n_]:=Sum[If[GCD[i, j]==2, If[i==j, (n-i)^2/2, (n-i)(n-j)], 0], {i, 2, n-1, 2}, {j, 2, i, 2}]+If[n>2, n(n-2)/2, 0]; Array[A331773, 50] (* Paolo Xausa, Oct 18 2023 *)
CROSSREFS
Equals A331772/8.
Sequence in context: A256313 A138621 A163061 * A033286 A182724 A342163
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 08 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)