A081720 Triangle T(n,k) read by rows, giving number of bracelets (turnover necklaces) with n beads of k colors (n >= 1, 1 <= k <= n).
1, 1, 3, 1, 4, 10, 1, 6, 21, 55, 1, 8, 39, 136, 377, 1, 13, 92, 430, 1505, 4291, 1, 18, 198, 1300, 5895, 20646, 60028, 1, 30, 498, 4435, 25395, 107331, 365260, 1058058, 1, 46, 1219, 15084, 110085, 563786, 2250311, 7472984, 21552969, 1, 78, 3210, 53764, 493131, 3037314
Offset: 1
Examples
1; (A000027) 1, 3; (A000217) 1, 4, 10; (A000292) 1, 6, 21, 55; (A002817) 1, 8, 39, 136, 377; (A060446) 1, 13, 92, 430, 1505, 4291; (A027670) 1, 18, 198, 1300, 5895, 20646, 60028; (A060532) 1, 30, 498, 4435, 25395, 107331, 365260, 1058058; (A060560) ... For example, when n=k=3, we have the following T(3,3)=10 bracelets of 3 beads using up to 3 colors: 000, 001, 002, 011, 012, 022, 111, 112, 122, and 222. (Note that 012 = 120 = 201 = 210 = 102 = 021.) _Petros Hadjicostas_, Nov 29 2017
References
- N. Zagaglia Salvi, Ordered partitions and colourings of cycles and necklaces, Bull. Inst. Combin. Appl., 27 (1999), 37-40.
Links
- Andrew Howroyd, Table of n, a(n) for n = 1..1275
- Yi Hu, Numerical Transfer Matrix Method of Next-nearest-neighbor Ising Models, Master's Thesis, Duke Univ. (2021).
- Yi Hu and Patrick Charbonneau, Numerical transfer matrix study of frustrated next-nearest-neighbor Ising models on square lattices, arXiv:2106.08442 [cond-mat.stat-mech], 2021, cites the 4th column.
Crossrefs
Programs
-
Maple
A081720 := proc(n, k) local d, t1; t1 := 0; if n mod 2 = 0 then for d from 1 to n do if n mod d = 0 then t1 := t1+numtheory[phi](d)*k^(n/d); end if; end do: (t1+(n/2)*(1+k)*k^(n/2)) /(2*n) ; else for d from 1 to n do if n mod d = 0 then t1 := t1+numtheory[phi](d)*k^(n/d); end if; end do; (t1+n*k^((n+1)/2)) /(2*n) ; end if; end proc: seq(seq(A081720(n,k),k=1..n),n=1..10) ;
-
Mathematica
t[n_, k_] := (For[t1 = 0; d = 1, d <= n, d++, If[Mod[n, d] == 0, t1 = t1 + EulerPhi[d]*k^(n/d)]]; If[EvenQ[n], (t1 + (n/2)*(1 + k)*k^(n/2))/(2*n), (t1 + n*k^((n + 1)/2))/(2*n)]); Table[t[n, k], {n, 1, 10}, {k, 1, n}] // Flatten (* Jean-François Alcover, Sep 13 2012, after Maple, updated Nov 02 2017 *) Needs["Combinatorica`"]; Table[Table[NumberOfNecklaces[n,k,Dihedral],{k,1,n}],{n,1,8}]//Grid (* Geoffrey Critzer, Oct 07 2012, after code by T. D. Noe in A027671 *)
Formula
See Maple code.
From Petros Hadjicostas, Nov 29 2017: (Start)
T(n,k) = ((1+k)*k^{n/2}/2 + (1/n)*Sum_{d|n} phi(n/d)*k^d)/2, if n is even, and = (k^{(n+1)/2} + (1/n)*Sum_{d|n} phi(n/d)*k^d)/2, if n is odd.
G.f. for column k: (1/2)*((k*x+k*(k+1)*x^2/2)/(1-k*x^2) - Sum_{n>=1} (phi(n)/n)*log(1-k*x^n)) provided we chop off the Taylor expansion starting at x^k (and ignore all the terms x^n with n
(End)
2*n*T(n,k) = A054618(n,k)+n*(1+k)^(n/2)/2 if n even, = A054618(n,k)+n*k^((n+1)/2) if n odd. - R. J. Mathar, Jan 23 2022
Extensions
Name edited by Petros Hadjicostas, Nov 29 2017
A051137 Table T(n,k) read by antidiagonals: number of necklaces allowing turnovers (bracelets) with n beads of k colors.
1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1, 1, 6, 10, 10, 5, 1, 1, 8, 21, 20, 15, 6, 1, 1, 13, 39, 55, 35, 21, 7, 1, 1, 18, 92, 136, 120, 56, 28, 8, 1, 1, 30, 198, 430, 377, 231, 84, 36, 9, 1, 1, 46, 498, 1300, 1505, 888, 406, 120, 45, 10, 1
Offset: 0
Examples
Table begins with T[0,1]: 1 1 1 1 1 1 1 1 1 1 1 2 3 4 5 6 7 8 9 10 1 3 6 10 15 21 28 36 45 55 1 4 10 20 35 56 84 120 165 220 1 6 21 55 120 231 406 666 1035 1540 1 8 39 136 377 888 1855 3536 6273 10504 1 13 92 430 1505 4291 10528 23052 46185 86185 1 18 198 1300 5895 20646 60028 151848 344925 719290 1 30 498 4435 25395 107331 365260 1058058 2707245 6278140 1 46 1219 15084 110085 563786 2250311 7472984 21552969 55605670 1 78 3210 53764 493131 3037314 14158228 53762472 174489813 500280022
Links
- C. G. Bower, Transforms (2)
Crossrefs
Programs
-
Mathematica
b[n_, k_] := DivisorSum[n, EulerPhi[#]*k^(n/#) &] / n; c[n_, k_] := If[EvenQ[n], (k^(n/2) + k^(n/2+1))/2, k^((n+1)/2)]; T[0, ] = 1; T[n, k_] := (b[n, k] + c[n, k])/2; Table[T[n, k-n], {k, 1, 11}, {n, k-1, 0, -1}] // Flatten (* Robert A. Russell, Sep 21 2018 after Jean-François Alcover *)
Formula
T(n, k) = (k^floor((n+1)/2) + k^ceiling((n+1)/2)) / 4 + (1/(2*n)) * Sum_{d divides n} phi(d) * k^(n/d). - Robert A. Russell, Sep 21 2018
G.f. for column k: (kx/4)*(kx+x+2)/(1-kx^2) - Sum_{d>0} phi(d)*log(1-kx^d)/2d. - Robert A. Russell, Sep 28 2018
T(n, k) = (k^floor((n+1)/2) + k^ceiling((n+1)/2))/4 + (1/(2*n))*Sum_{i=1..n} k^gcd(n,i). (See A075195 formulas.) - Richard L. Ollerton, May 04 2021
A321791 Table read by descending antidiagonals: T(n,k) is the number of unoriented cycles (bracelets) of length n using up to k available colors.
1, 1, 0, 1, 1, 0, 1, 2, 1, 0, 1, 3, 3, 1, 0, 1, 4, 6, 4, 1, 0, 1, 5, 10, 10, 6, 1, 0, 1, 6, 15, 20, 21, 8, 1, 0, 1, 7, 21, 35, 55, 39, 13, 1, 0, 1, 8, 28, 56, 120, 136, 92, 18, 1, 0, 1, 9, 36, 84, 231, 377, 430, 198, 30, 1, 0
Offset: 0
Examples
Table begins with T(0,0): 1 1 1 1 1 1 1 1 1 1 1 ... 0 1 2 3 4 5 6 7 8 9 10 ... 0 1 3 6 10 15 21 28 36 45 55 ... 0 1 4 10 20 35 56 84 120 165 220 ... 0 1 6 21 55 120 231 406 666 1035 1540 ... 0 1 8 39 136 377 888 1855 3536 6273 10504 ... 0 1 13 92 430 1505 4291 10528 23052 46185 86185 ... 0 1 18 198 1300 5895 20646 60028 151848 344925 719290 ... 0 1 30 498 4435 25395 107331 365260 1058058 2707245 6278140 ... 0 1 46 1219 15084 110085 563786 2250311 7472984 21552969 55605670 ... 0 1 78 3210 53764 493131 3037314 14158228 53762472 174489813 500280022 ... For T(3,3)=10, the unoriented cycles are 9 achiral (AAA, AAB, AAC, ABB, ACC, BBB, BBC, BCC, CCC) and 1 chiral pair (ABC-ACB).
Crossrefs
Programs
-
Mathematica
Table[If[k>0, DivisorSum[k, EulerPhi[#](n-k)^(k/#)&]/(2k) + ((n-k)^Floor[(k+1)/2]+(n-k)^Ceiling[(k+1)/2])/4, 1], {n, 0, 12}, {k, 0, n}] // Flatten
Formula
T(n,k) = [n==0] + [n>0] * (k^floor((n+1)/2) + k^ceiling((n+1)/2)) / 4 + (1/(2*n)) * Sum_{d|n} phi(d) * k^(n/d).
Linear recurrence for row n: T(n,k) = Sum_{j=0..n} -binomial(j-n-1,j+1) * T(n,k-1-j) for k >= n + 1.
O.g.f. for column k >= 0: Sum_{n>=0} T(n,k)*x^n = 3/4 + (1 + k*x)^2/(4*(1 - k*x^2)) - (1/2) * Sum_{d >= 1} (phi(d)/d) * log(1 - k*x^d). - Petros Hadjicostas, Feb 07 2021
A056346 Number of bracelets of length n using exactly six different colored beads.
0, 0, 0, 0, 0, 60, 1080, 11970, 105840, 821952, 5874480, 39713550, 258136200, 1631273220, 10096734312, 61536377700, 370710950400, 2213749658880, 13132080672480, 77509456944318, 455754569692680
Offset: 1
Keywords
Comments
Turning over will not create a new bracelet.
Examples
For a(6)=60, pair up the 120 permutations of BCDEF, each with its reverse, such as BCDEF-FEDCB. Precede the first of each pair with an A, such as ABCDEF. These are the 60 arrangements, all chiral. If we precede the second of each pair with an A, such as AFEDCB, we get the chiral partner of each. - _Robert A. Russell_, Sep 27 2018
References
- M. R. Nester (1999). Mathematical investigations of some plant interaction designs. PhD Thesis. University of Queensland, Brisbane, Australia. [See A056391 for pdf file of Chap. 2]
Crossrefs
Programs
-
Mathematica
t[n_, k_] := (For[t1 = 0; d = 1, d <= n, d++, If[Mod[n, d] == 0, t1 = t1 + EulerPhi[d]*k^(n/d)]]; If[EvenQ[n], (t1 + (n/2)*(1 + k)*k^(n/2))/(2*n), (t1 + n*k^((n + 1)/2))/(2*n)]); T[n_, k_] := Sum[(-1)^i*Binomial[k, i]*t[n, k - i], {i, 0, k - 1}]; a[n_] := T[n, 6]; Array[a, 21] (* Jean-François Alcover, Nov 05 2017, after Andrew Howroyd *) k=6; Table[k! DivisorSum[n, EulerPhi[#] StirlingS2[n/#,k]&]/(2n) + k!(StirlingS2[Floor[(n+1)/2], k] + StirlingS2[Ceiling[(n+1)/2], k])/4, {n,1,30}] (* Robert A. Russell, Sep 27 2018 *)
-
PARI
a(n) = my(k=6); (k!/4) * (stirling(floor((n+1)/2),k,2) + stirling(ceil((n+1)/2),k,2)) + (k!/(2*n))*sumdiv(n, d, eulerphi(d)*stirling(n/d,k,2)); \\ Michel Marcus, Sep 29 2018
Formula
From Robert A. Russell, Sep 27 2018: (Start)
a(n) = (k!/4) * (S2(floor((n+1)/2),k) + S2(ceiling((n+1)/2),k)) + (k!/2n) * Sum_{d|n} phi(d) * S2(n/d,k), where k=6 is the number of colors and S2 is the Stirling subset number A008277.
G.f.: (k!/4) * x^(2k-2) * (1+x)^2 / Product_{i=1..k} (1-i x^2) - Sum_{d>0} (phi(d)/2d) * Sum_{j} (-1)^(k-j) * C(k,j) * log(1-j x^d), where k=6 is the number of colors. (End)
A278642 Number of pairs of orientable necklaces with n beads and up to 6 colors; i.e., turning the necklace over does not leave it unchanged. The turned-over necklace is not included in the count.
0, 0, 0, 20, 105, 672, 3535, 19350, 102795, 556010, 3010098, 16467450, 90619690, 502194420, 2798240265, 15671993560, 88156797855, 497837886000, 2821092554035, 16035752398770, 91403856697944, 522308167195260, 2991401733402075, 17168047238861070, 98716274117752900, 568605754068247644, 3280417827002225910, 18953525314104758810
Offset: 0
Keywords
Comments
Number of chiral bracelets of n beads using up to six different colors.
Crossrefs
Programs
-
Mathematica
mx = 40; f[x_, k_] := (1 - Sum[EulerPhi[n] * Log[1 - k * x^n]/n,{n, mx}] - Sum[Binomial[k, i] * x^i, {i, 0, 2}]/(1 - k * x^2))/2; CoefficientList[Series[f[x, 6], {x, 0, mx}], x] k = 6; Prepend[Table[DivisorSum[n, EulerPhi[#] k^(n/#) &]/(2n) - (k^Floor[(n + 1)/2] + k^Ceiling[(n + 1)/2])/4, {n, 30}], 0] (* Robert A. Russell, Sep 24 2018 *)
Formula
Equals (A054625(n) - A056488(n)) / 2 = A054625(n) - A056341(n) = A056341(n) - A056488(n), for n >= 1.
G.f.: k = 6, (1 - Sum_{n >= 1} phi(n)*log(1 - k*x^n)/n - Sum_{i = 0..2} Binomial[k, i]*x^i / ( 1 - k*x^2) )/2.
For n > 0, a(n) = -(k^floor((n+1)/2) + k^ceiling((n+1)/2))/4 + (1/2n)* Sum_{d|n} phi(d)*k^(n/d), where k = 6 is the maximum number of colors. - Robert A. Russell, Sep 24 2018
A056347 Number of primitive (period n) bracelets using a maximum of six different colored beads.
6, 15, 50, 210, 882, 4220, 20640, 107100, 563730, 3036411, 16514100, 90778485, 502474350, 2799199380, 15673672238, 88162569180, 497847963690, 2821127257950, 16035812864940, 91404065292036
Offset: 1
Keywords
Comments
Turning over will not create a new bracelet.
References
- M. R. Nester (1999). Mathematical investigations of some plant interaction designs. PhD Thesis. University of Queensland, Brisbane, Australia. [See A056391 for pdf file of Chap. 2]
Programs
-
Mathematica
mx=40;gf[x_,k_]:=Sum[ MoebiusMu[n]*(-Log[1-k*x^n]/n+Sum[Binomial[k,i]x^(n i),{i,0,2}]/( 1-k x^(2n)))/2,{n,mx}]; CoefficientList[Series[gf[x,6],{x,0,mx}],x] (* Herbert Kociemba, Nov 28 2016 *)
Formula
sum mu(d)*A056341(n/d) where d|n.
From Herbert Kociemba, Nov 28 2016: (Start)
More generally, gf(k) is the g.f. for the number of bracelets with primitive period n and beads of k colors.
gf(k): Sum_{n>=1} mu(n)*( -log(1-k*x^n)/n + Sum_{i=0..2} binomial(k,i)x^(n*i)/(1-k*x^(2*n)) )/2. (End)
Comments