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.

A365858 Number of cyclic compositions of 2*n-1 into odd parts.

This page as a plain text file.
%I A365858 #33 Mar 31 2025 15:21:27
%S A365858 1,2,3,5,10,19,41,94,211,493,1170,2787,6713,16274,39651,97109,238838,
%T A365858 589527,1459961,3626242,9030451,22542397,56393862,141358275,354975433,
%U A365858 892893262,2249412291,5674891017,14335757586,36259245523,91815545801,232745229290,590586152235,1500020153485,3813274653414
%N A365858 Number of cyclic compositions of 2*n-1 into odd parts.
%C A365858 Odd bisection of A032189.
%C A365858 Also the number of cyclic compositions into an odd number of odd parts; because such a sum must be odd, alternating terms are zero and have been removed.
%H A365858 Joshua P. Bowman, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL27/Bowman/bowman4.html">Compositions with an Odd Number of Parts, and Other Congruences</a>, J. Int. Seq (2024) Vol. 27, Art. 24.3.6. See p. 25.
%H A365858 Brian Hopkins, Jesús Sistos Barrón, and Hua Wang, <a href="https://doi.org/10.61091/um122-04">Conjugating cyclic n-color compositions</a>, Utilitas Mathematica (2025) Vol. 122, 53-64. See p. 62.
%H A365858 Jesus Omar Sistos Barron, <a href="https://digitalcommons.georgiasouthern.edu/honors-theses/985">Counting Conjugates of Colored Compositions</a>, Honors College Thesis, Georgia Southern Univ. (2024), No. 985. See p. 30.
%F A365858 G.f.: (1/2) * Sum_{k odd} (phi(k)/k)*log((1+x^k-x^(2k))/(1-x^k-x^(2*k))), where phi(n) = A000010(n).
%F A365858 a(n) = (1/(2*n-1)) * Sum_{k divides 2n-1} phi(k)*A000204((2*n-1)/k).
%F A365858 a(n) ~ ((1+sqrt(5))/2)^(2*n-1) / (2*n). - _Vaclav Kotesovec_, Sep 22 2023
%t A365858 Table[1/(2*n - 1) * Sum[EulerPhi[k]*LucasL[(2*n - 1)/k], {k, Divisors[2*n - 1]}], {n, 1, 40}] (* _Vaclav Kotesovec_, Sep 22 2023 *)
%o A365858 (PARI)
%o A365858 N=99;  x='x+O('x^N); B(x)=x/(1-x^2);
%o A365858 A=Vec(sum(k=1, N, eulerphi(k)/k*log(1/(1-B(x^k)))));
%o A365858 vector(#A\2,n,A[2*n-1]) \\ _Joerg Arndt_, Sep 22 2023
%o A365858 (Python)
%o A365858 from sympy import totient, lucas, divisors
%o A365858 def A365858(n): return sum(totient(((n<<1)-1)//k)*(lucas(k)-((k&1^1)<<1)) for k in divisors((n<<1)-1,generator=True))//((n<<1)-1) # _Chai Wah Wu_, Sep 23 2023
%Y A365858 Cf. A000010, A000204 (Lucas), A032189, A365857, A365859.
%K A365858 nonn
%O A365858 1,2
%A A365858 _Joshua P. Bowman_, Sep 20 2023