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.

A184331 Table read by antidiagonals: T(n,k) = number of distinct n X k toroidal 0..6 arrays.

Original entry on oeis.org

7, 28, 28, 119, 637, 119, 616, 19684, 19684, 616, 3367, 721525, 4484039, 721525, 3367, 19684, 28249228, 1153450872, 1153450872, 28249228, 19684, 117655, 1153470437, 316504102999, 2077059243301, 316504102999, 1153470437, 117655, 720916
Offset: 1

Views

Author

R. H. Hardin, Jan 11 2011

Keywords

Examples

			Table starts
       7         28          119           616         3367          19684
      28        637        19684        721525     28249228     1153470437
     119      19684      4484039    1153450872 316504102999 90467424400444
     616     721525   1153450872 2077059243301
    3367   28249228 316504102999
   19684 1153470437
  117655
		

Crossrefs

Columns 1-3 are A054626, A184329, A184330.

Programs

  • Mathematica
    T[n_, k_] := (1/(n*k))*Sum[Sum[EulerPhi[c]*EulerPhi[d]*7^(n*(k/LCM[c, d])), {d, Divisors[k]}], {c, Divisors[n]}]; Table[T[n - k + 1, k], {n, 1, 8}, {k, 1, n}] // Flatten (* Jean-François Alcover, Oct 30 2017, after Andrew Howroyd *)
  • PARI
    T(n, k) = (1/(n*k)) * sumdiv(n, c, sumdiv(k, d, eulerphi(c) * eulerphi(d) * 7^(n*k/lcm(c,d)))); \\ Andrew Howroyd, Sep 27 2017

Formula

T(n,k) = (1/(n*k)) * Sum_{c|n} Sum_{d|k} phi(c) * phi(d) * 7^(n*k/lcm(c,d)). - Andrew Howroyd, Sep 27 2017