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.

Showing 1-2 of 2 results.

A124810 Number of 4-ary Lyndon words of length n with exactly two 1s.

Original entry on oeis.org

3, 12, 54, 198, 729, 2538, 8748, 29484, 98415, 324648, 1062882, 3454002, 11160261, 35871174, 114791256, 365893848, 1162261467, 3680484804, 11622614670, 36611206686, 115063885233, 360882096930, 1129718145924, 3530368940292
Offset: 3

Views

Author

Mike Zabrocki, Nov 08 2006

Keywords

Comments

If the offsets are modified, A124810 to A124813 are the 2nd to 5th Witt transform of A000244 [Moree]. - R. J. Mathar, Nov 08 2008

Examples

			a(4) = 12 because 1122, 1123, 1124, 1132, 1133, 1134, 1142, 1143, 1144, 1213, 1214, 1314 are all 4-ary Lyndon words with length 4 and have exactly two 1s.
		

Crossrefs

Programs

  • Maple
    a:= n-> (Matrix([[12, 3, 0, 0]]). Matrix(4, (i,j)-> if (i=j-1) then 1 elif j=1 then [6, -6, -18, 27][i] else 0 fi)^(n-4))[1,1]: seq(a(n), n=3..26); # Alois P. Heinz, Aug 04 2008
  • Mathematica
    a[n_] := (1/2)*(n-1)*3^(n-2) - If[OddQ[n], 0, (1/2)*3^((n-2)/2)];
    Array[a, 24, 3] (* Jean-François Alcover, Sep 19 2017 *)

Formula

O.g.f.: 3 x^3 (1-2 x)/((1-3x)^2 (1-3x^2)) = 1/2*((x/(1-3*x))^2 - x^2/(1-3*x^2)).
a(n) = 1/2*sum_{d|2,d|n} mu(d) C(n/d-1,(n-2)/d )*3^((n-2)/d) =1/2*(n-1)*3^(n-2) if n is odd =1/2*(n-1)*3^(n-2) - 1/2*3^((n-2)/2) if n is even.
a(2n+1) = A230540(n)/2. - R. J. Mathar, Jul 20 2025

A230539 a(n) = 3*n*2^(3*n-1).

Original entry on oeis.org

0, 12, 192, 2304, 24576, 245760, 2359296, 22020096, 201326592, 1811939328, 16106127360, 141733920768, 1236950581248, 10720238370816, 92358976733184, 791648371998720, 6755399441055744, 57420895248973824, 486388759756013568, 4107282860161892352
Offset: 0

Views

Author

Bruno Berselli, Oct 23 2013

Keywords

Comments

Arithmetic derivative of 8^n: a(n) = A003415(8^n).
Sum of reciprocals of a(n), for n>0: (2/3)*log(8/7).

Crossrefs

Cf. arithmetic derivative of k^n: A001787 (k=2), A027471 (k=3), A018215 (k=4), A053464 (k=5), A212700 (k=6), A027473 (k=7), this sequence, A230540 (k=9), A085708 (k=10), A081127 (k=11).
Row n=8 of A258997.

Programs

  • Magma
    [3*n*2^(3*n-1): n in [0..20]];
    
  • Maple
    A230539:=n->3*n*2^(3*n-1): seq(A230539(n), n=0..30); # Wesley Ivan Hurt, May 03 2017
  • Mathematica
    Table[3 n 2^(3 n - 1), {n,0,20}]
    LinearRecurrence[{16,-64},{0,12},20] (* Harvey P. Dale, Dec 25 2022 *)
  • PARI
    a(n) = 3*n*2^(3*n-1); \\ Michel Marcus, Oct 23 2013

Formula

G.f.: 12*x/(1-8*x)^2.
a(n) = 12*A053539(n).
Showing 1-2 of 2 results.