A098485 Triangle T(m,k) read by rows, where T(m,k) is the number of ways in which 1 <= k <= m positions can be picked in an m X m square array such that their adjacency graph consists of a single component. Two positions (s,t), (u,v) are considered as adjacent if max(abs(s-u), abs(t-v)) <= 1.
1, 4, 6, 9, 20, 48, 16, 42, 132, 419, 25, 72, 256, 973, 3682, 36, 110, 420, 1747, 7484, 31992, 49, 156, 624, 2741, 12562, 58620, 273556, 64, 210, 868, 3955, 18916, 92912, 462104, 2927505, 81, 272, 1152, 5389, 26546, 134868, 697836, 3644935, 19082018
Offset: 1
Examples
a(5)=T(3,2)=20 because there are 20 ways to mark two positions in a 3 X 3 square grid such that the two picked positions are either row-wise, column-wise or diagonally adjacent: XX0...X00...X00...0XX...0X0...0X0...0X0...00X...00X...000 000...X00...0X0...000...X00...0X0...00X...0X0...00X...XX0 000...000...000...000...000...000...000...000...000...000 ......................................................... 000...000...000...000...000...000...000...000...000...000 000...X00...0X0...000...X00...0X0...00X...0X0...00X...0XX XX0...X00...X00...0XX...0X0...0X0...0X0...00X...00X...000
Links
- John Burkardt, GRAFPACK Graph Computations.
- Hugo Pfoertner, Counts of connected components in selected numbers on square lotto boards.
- Hugo Pfoertner, Program to analyze the adjacency graph of selections on lotto boards.
Crossrefs
Programs
-
Fortran
c See link.
Comments