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.

A227910 The number of necklaces with n beads of white and red colors, including at least three white ones.

This page as a plain text file.
%I A227910 #45 Jul 02 2018 12:16:20
%S A227910 1,2,4,8,13,24,40,71,119,216,372,678,1215,2240,4102,7674,14299,27000,
%T A227910 50952,96896,184397,352684,675174,1296843,2493711,4806062,9272764,
%U A227910 17920843,34669585,67159032,130216106,252745349,490984469,954637538,1857545280,3617214660,7048675939,13744694906
%N A227910 The number of necklaces with n beads of white and red colors, including at least three white ones.
%C A227910 a(n) is the number of classes (not necessarily convex) n-gons. Two n-gons are assigned to the same class, if (under suitable start and direction) their vertex at the same time belong or do not belong to the convex hull of the corresponding polygon.
%C A227910 a(n) is also the number of classes (not necessarily convex) n-gons at the other classification. Two n-gons belong to one class, if (under suitable start and direction) their angles simultaneously have a measure either less or greater than 180 degrees.
%C A227910 Note that the equation quantities of classes of these classifications does not mean equality classes themselves.
%C A227910 a(n) is also the number of non-isomorphic n-vertex undirected graphs in the form of a simple cycle with any number of degree-1 vertices attached to each cycle vertex. To transform a necklace into a graph of this type, create a cycle vertex for each white bead and a pendant vertex for each red bead, with the pendant vertex for a red bead attached to the cycle vertex for the clockwise next white bead. - _David Eppstein_, Oct 25 2015
%H A227910 Andrew Howroyd, <a href="/A227910/b227910.txt">Table of n, a(n) for n = 3..200</a>
%H A227910 Peter Kagey, <a href="/A227910/a227910.pdf">Examples of classes of n-gons for a(4), a(5), and a(6)</a>
%H A227910 Vladimir Letsko, <a href="http://dxdy.ru/topic16349-135.html">Mathematical Marathon, Problem 150</a> (in Russian)
%F A227910 a(n) = (Sum_{m=3..n} (1/n*sum_{d|gcd(m,n)} phi(d)*binomial(n/d,m/d)) + binomial(floor(m/2)+floor((n-m)/2), floor(m/2)))/2.
%e A227910 a(4)=2 because there are exactly 2 necklaces with 4 beads of white and red colors, including at least three white ones:
%e A227910 1) all beads are white;
%e A227910 2) one bead is red.
%p A227910 g:=(n,m)->add(phi(d)*binomial(n/d,m/d),d in divisors(igcd(n,m)))/2/n+1/2*binomial(floor(m/2)+floor((n-m)/2),floor(m/2));
%p A227910 for n from 3 do s:=0:for m from 3 to n dos:=s+g(n,m) od: print(n,s) od:
%t A227910 g[n_, m_] := Sum[EulerPhi[d]*Binomial[n/d, m/d], {d , Divisors[GCD[n, m]]}]/2/n + 1/2*Binomial[Floor[m/2] + Floor[(n - m)/2], Floor[m/2]];
%t A227910 A227910 = Table[Sum[g[n, m], {m, 3, n}], {n, 3, 40}] (* _Jean-François Alcover_, Jul 02 2018, from Maple *)
%o A227910 (PARI) a(n) = (sum(m=3, n, (1/n*sumdiv(gcd(m,n), d, eulerphi(d)*binomial(n/d,m/d))) + binomial(m\2+(n-m)\2, m\2) ))/2; \\ _Andrew Howroyd_, Oct 11 2017
%Y A227910 Cf. A000029, A262232.
%K A227910 nonn
%O A227910 3,2
%A A227910 _Vladimir Letsko_, Oct 13 2013