OFFSET
1,1
MATHEMATICA
aaadcpQ[n_]:=And@@CoprimeQ@@@Partition[n, 2, 1]&&CoprimeQ[n[[1]], n[[-1]]]; FromDigits/@Select[Permutations[Range[6]], aaadcpQ] (* Harvey P. Dale, Mar 22 2018 *)
CROSSREFS
KEYWORD
full,nonn,base,fini
AUTHOR
Zak Seidov, Mar 30 2005
STATUS
approved