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.

A220001 Benes network size for permutations of n.

Original entry on oeis.org

0, 1, 3, 6, 8, 12, 15, 20, 22, 26, 30, 36, 39, 44, 49, 56, 58, 62, 66, 72, 76, 82, 88, 96, 99, 104, 109, 116, 121, 128, 135, 144, 146, 150, 154, 160, 164, 170, 176, 184, 188, 194, 200, 208, 214, 222, 230, 240, 243, 248, 253, 260, 265, 272, 279, 288, 293, 300
Offset: 1

Views

Author

Leonid Broukhis, Dec 03 2012

Keywords

Comments

a(n) is the number of 2 X 2 direct/crisscross switches required to construct an n X n crossbar for any permutation.

Examples

			n=1 does not need any switches, n=2 needs just one 2 X 2 switch, n=3 needs three switches (1 X 2, 2 X 3, 1 X 2).
		

Programs

Formula

a(n) = 2*floor(n/2) + a(floor(n/2)) + a(ceiling(n/2)) for n > 2 and a(1)=0 and a(2)=1.