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.
%I A115120 #11 Aug 28 2019 08:15:17 %S A115120 0,0,1,1,2,1,4,1,8,3,17,1,56,1,134,18,440,1,1434,1,4758,135,16160,1, %T A115120 57254,16,200475,1387,718152,1,2591800,1,9398520,16161,34324175,148, %U A115120 126125330,1,465093572,200476,1723176740,1,6408642359,1,23910576236,2588402,89494164974,1,335923316982,133,1264107421202 %N A115120 Number of imprimitive (periodic) 2n-bead black-white reversible necklaces with n black beads. %C A115120 a(p)=1 for prime p. %F A115120 a(n) = A005648(n) - A045628(n). %t A115120 A005648[0] = 1; A005648[n_] := (1/2)(Binomial[2 Quotient[n, 2], Quotient[n, 2]] + DivisorSum[n, EulerPhi[#] Binomial[2n/#, n/#] &]/(2n)); %t A115120 A045628[n_] := If[n == 0, 1, Sum[MoebiusMu[n/d] (2n Binomial[2 Quotient[d, 2], Quotient[d, 2]] + Binomial[2d, d]), {d, Divisors[n]}]/(4n)]; %t A115120 a[n_] := A005648[n] - A045628[n]; %t A115120 Table[a[n], {n, 0, 50}] (* _Jean-François Alcover_, Aug 28 2019 *) %K A115120 easy,nonn %O A115120 0,5 %A A115120 _Valery A. Liskovets_, Jan 17 2006 %E A115120 More terms from _Jean-François Alcover_, Aug 28 2019