%I #27 Sep 24 2023 09:18:16
%S 0,3,2,24,24,392,513,4080,8090,96816,238296,2023896,7325520,63277376,
%T 277838352,2185076682,12898278126
%N Number of undirected circular permutations i_0,i_1,...,i_{n-1} of 0,1,...,n-1 such that i_0+i_1+i_2, i_1+i_2+i_3, ..., i_{n-3}+i_{n-2}+i_{n-1}, i_{n-2}+i_{n-1}+i_0, i_{n-1}+i_0+i_1 are pairwise distinct modulo n.
%C Note that if n > 3 is not a multiple of 3 then a(n) > 0 since the natural circular permutation (0,1,2,...,n-1) meets the requirement.
%C Conjecture: Let G be an additive abelian group. If G is cyclic or G contains no involution, then for any finite subset A of G with |A| = n > 3, there is a numbering a_1,...,a_n of the elements of A such that the n sums a_1+a+2+a_3, a_2+a_3+a_4, ..., a_{n-2}+a_{n-1}+a_n, a_{n-1}+a_n+a_1, a_n+a_1+a_2 are pairwise distinct.
%C On Sep 13 2013, the author proved the conjecture for any torsion-free abelian group G.
%H Zhi-Wei Sun, <a href="http://dx.doi.org/10.4310/MRL.2008.v15.n6.a15">An additive theorem and restricted sumsets</a>, Math. Res. Lett. 15(2008), 1263-1276.
%H Zhi-Wei Sun, <a href="http://arxiv.org/abs/1309.1679">Some new problems in additive combinatorics</a>, preprint, arXiv:1309.1679 [math.NT], 2013-2014.
%e a(4) = 3 due to the circular permutations (0,1,2,3), (0,1,3,2) and (0,2,1,3).
%e a(5) = 2 due to the circular permutations (0,1,2,3,4) and(0,2,4,1,3).
%e a(6) > 0 due to the circular permutation (0,1,2,4,5,3).
%e a(9) > 0 due to the circular permutation (0,1,2,3,8,5,6,7,4).
%t (* A program to compute required circular permutations for n = 9. To get "undirected" circular permutations, we should identify a circular permutation with the one of the opposite direction; for example, (0,4,7,6,5,8,3,2,1) is identical to (0,1,2,3,8,5,6,7,4) if we ignore direction.*)
%t V[i_]:=Part[Permutations[{1,2,3,4,5,6,7,8}],i]
%t m=0
%t Do[If[Length[Union[Table[Mod[If[j==0,0,Part[V[i],j]]+If[j<8,Part[V[i],j+1],0]+If[j<7,Part[V[i],j+2],If[j==7,0,Part[V[i],1]]],9],{j,0,8}]]]<9,Goto[aa]];
%t m=m+1;Print[m,":"," ",0," ",Part[V[i],1]," ",Part[V[i],2]," ",Part[V[i],3]," ",Part[V[i],4]," ",Part[V[i],5]," ",Part[V[i],6]," ",Part[V[i],7]," ",Part[V[i],8]];Label[aa];Continue,{i,1,8!}]
%Y Cf. A228626, A228766, A185645, A228728.
%K nonn,more,hard
%O 3,2
%A _Zhi-Wei Sun_, Sep 03 2013
%E a(10)-a(18) from _Bert Dobbelaere_, Sep 08 2019
%E a(19) from _Robin Visser_, Sep 24 2023