cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A261494 Number A(n,k) of necklaces with n white beads and k*n black beads; square array A(n,k), n>=0, k>=0, read by antidiagonals.

This page as a plain text file.
%I A261494 #37 Feb 16 2025 08:33:26
%S A261494 1,1,1,1,1,1,1,1,2,1,1,1,3,4,1,1,1,4,10,10,1,1,1,5,19,43,26,1,1,1,6,
%T A261494 31,116,201,80,1,1,1,7,46,245,776,1038,246,1,1,1,8,64,446,2126,5620,
%U A261494 5538,810,1,1,1,9,85,735,4751,19811,42288,30667,2704,1
%N A261494 Number A(n,k) of necklaces with n white beads and k*n black beads; square array A(n,k), n>=0, k>=0, read by antidiagonals.
%C A261494 For k>=1 is column k asymptotic to (k+1)^((k+1)*n-1/2) / (sqrt(2*Pi) * k^(k*n+1/2) * n^(3/2)). - _Vaclav Kotesovec_, Aug 22 2015
%H A261494 Alois P. Heinz, <a href="/A261494/b261494.txt">Antidiagonals n = 0..140, flattened</a>
%H A261494 F. Ruskey, <a href="http://combos.org/necklace">Necklaces, Lyndon words, De Bruijn sequences, etc.</a>
%H A261494 F. Ruskey, <a href="/A000011/a000011.pdf">Necklaces, Lyndon words, De Bruijn sequences, etc.</a> [Cached copy, with permission, pdf format only]
%H A261494 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Necklace.html">Necklace</a>
%H A261494 Wikipedia, <a href="https://en.wikipedia.org/wiki/Necklace_(combinatorics)">Necklace (combinatorics)</a>
%H A261494 <a href="/index/Ne#necklaces">Index entries for sequences related to necklaces</a>
%F A261494 A(n,k) = 1/((k+1)*n) * Sum_{d|n} C((k+1)*n/d,n/d) * A000010(d) for n>0, A(0,k) = 1.
%F A261494 A(n,k) = 1/((k+1)*n)*Sum_{i=1..n} C((k+1)*gcd(n,i),gcd(n,i)) = 1/((k+1)*n)*Sum_{i=1..n} C((k+1)*n/gcd(n,i),n/gcd(n,i))*phi(gcd(n,i))/phi(n/gcd(n,i)) for n >= 1, where phi = A000010. - _Richard L. Ollerton_, May 19 2021
%e A261494 A(2,2) = 3: 000011, 000101, 001001.
%e A261494 A(3,2) = 10: 000000111, 000001011, 000010011, 000100011, 001000011, 010000011, 000010101, 000100101, 001000101, 001001001.
%e A261494 Square array A(n,k) begins:
%e A261494   1,  1,    1,    1,     1,     1,      1, ...
%e A261494   1,  1,    1,    1,     1,     1,      1, ...
%e A261494   1,  2,    3,    4,     5,     6,      7, ...
%e A261494   1,  4,   10,   19,    31,    46,     64, ...
%e A261494   1, 10,   43,  116,   245,   446,    735, ...
%e A261494   1, 26,  201,  776,  2126,  4751,   9276, ...
%e A261494   1, 80, 1038, 5620, 19811, 54132, 124936, ...
%p A261494 with(numtheory):
%p A261494 A:= (n, k)-> `if`(n=0, 1, add(binomial((k+1)*n/d, n/d)
%p A261494                     *phi(d), d=divisors(n))/((k+1)*n)):
%p A261494 seq(seq(A(n, d-n), n=0..d), d=0..14);
%t A261494 A[n_, k_] := If[n==0, 1, DivisorSum[n, Binomial[(k+1)*n/#, n/#]*EulerPhi[#] /((k+1)*n)&]]; Table[A[n, d-n], {d, 0, 14}, {n, 0, d}] // Flatten (* _Jean-François Alcover_, Feb 19 2017, translated from Maple *)
%o A261494 (PARI) a(n,k) = if(n<1, 1, sumdiv(n, d, binomial((k + 1)*n/d, n/d) * eulerphi(d)) / ((k + 1)*n));
%o A261494 for(d=0, 14, for(n=0, d, print1(a(n, d - n),", ");); print();) \\ _Indranil Ghosh_, Mar 25 2017
%Y A261494 Columns k=0-10 give: A000012, A003239, A082936, A261497, A261498, A261499, A261500, A261501, A261502, A261503, A261504.
%Y A261494 Main diagonal gives A261495.
%Y A261494 Lower diagonal gives A261496.
%Y A261494 Cf. A000010.
%K A261494 nonn,tabl
%O A261494 0,9
%A A261494 _Alois P. Heinz_, Aug 21 2015