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.

A323862 Table read by antidiagonals where A(n,k) is the number of n X k binary arrays in which both the sequence of rows and the sequence of columns are (independently) aperiodic.

Original entry on oeis.org

2, 2, 2, 6, 10, 6, 12, 54, 54, 12, 30, 228, 498, 228, 30, 54, 990, 4020, 4020, 990, 54, 126, 3966, 32730, 65040, 32730, 3966, 126, 240, 16254, 261522, 1047540, 1047540, 261522, 16254, 240, 504, 65040, 2097018, 16768860, 33554370, 16768860, 2097018, 65040, 504
Offset: 1

Views

Author

Gus Wiseman, Feb 04 2019

Keywords

Comments

A sequence of length n is aperiodic if all n rotations of its entries are distinct.

Examples

			Array begins:
        2        2        6       12       30
        2       10       54      228      990
        6       54      498     4020    32730
       12      228     4020    65040  1047540
       30      990    32730  1047540 33554370
		

Crossrefs

First and last columns are A027375. Main diagonal is A265627.

Programs

  • Mathematica
    nn=5;
    a[n_,k_]:=Sum[MoebiusMu[d]*MoebiusMu[e]*2^(n/d*k/e),{d,Divisors[n]},{e,Divisors[k]}];
    Table[a[n-k,k],{n,nn},{k,n-1}]
  • PARI
    A(n,k) = {sumdiv(n, d, sumdiv(k,e, moebius(d) * moebius(e) * 2^((n/d) * (k/e))))} \\ Andrew Howroyd, Jan 19 2023

Formula

A(n,k) = Sum_{d|n, e|k} mu(d) * mu(e) * 2^((n/d) * (k/e)).