OFFSET
1,8
COMMENTS
A 4-regular circulant graph of order n, C(n,i,j), is connected if and only if gcd(n,i,j) = 1, where 0 < i < j < n.
LINKS
Paul Theo Meijer, Connectivities and diameters of circulant graphs
Eric Weisstein's World of Mathematics, Circulant Graph
MATHEMATICA
npairs[n_]:=Module[{k=0},
Do[Do[
If[GCD[i, j, n]>1, k++]
, {i, 1, j-1}], {j, 2, n-1}];
Return[k]];
Table[npairs[n], {n, 1, 60}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Andres Cicuttin, May 23 2021
STATUS
approved