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.

A344112 Triangle read by rows: T(n,k) is the number of relations from an n-element set to a k-element set that are not functions.

Original entry on oeis.org

1, 3, 12, 7, 56, 485, 15, 240, 4015, 65280, 31, 992, 32525, 1047552, 33551307, 63, 4032, 261415, 16773120, 1073726199, 68719430080, 127, 16256, 2094965, 268419072, 34359660243, 4398046231168, 562949952597769, 255, 65280, 16770655, 4294901760, 1099511237151
Offset: 1

Views

Author

Mohammad K. Azarian, May 10 2021

Keywords

Examples

			T(2,2) = (number of relations) - (number of functions) = 2^4 - 4 = 12.
Triangle T(n,k) begins:
   1;
   3,  12;
   7,  56,   485;
  15, 240,  4015,   65280;
  31, 992, 32525, 1047552, 33551307;
		

Crossrefs

Programs

  • Mathematica
    Column[Table[2^(n*k) - k^n, {n, 10}, {k, n}], Center]

Formula

T(n,k) = 2^(n*k) - k^n, n,k >= 1.