OFFSET
1,1
REFERENCES
Lowell W. Beineke, Michael A. Henning, Opinion functions on trees. 15th British Combinatorial Conference (Stirling, 1995). Discrete Math. 167/168 (1997), 127--139. MR1446738 (98a:05049)
LINKS
Lowell W. Beineke, Michael A. Henning, Opinion functions on trees, Discrete Mathematics, Volumes 167-168, 15 April 1997, Pages 127-139, Selected Papers 15th British Combinatorial Conference
EXAMPLE
Array begins:
2 2 3 3 4 4 4 4 5 5 6 6 ...
2 3 3 4 4 4 4 5 5 6 6 6 ...
3 3 4 4 5 4 5 5 6 6 6 6 ...
3 4 4 5 5 6 5 6 6 6 6 7 ...
4 4 5 5 6 6 6 6 6 6 7 7 ...
...
PROG
(PARI) majC(s, t) = {if (t <= 5, return ((s+t)\2 + 1)); if ((6 <= t) && (t <= s+2), return ((s+t)\2 - (t-1)\3 + 2)); if (t >= s+3, return ((2*(s+t)\2)\3+2)); } \\ Michel Marcus, Mar 30 2013
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
N. J. A. Sloane, Mar 22 2012
STATUS
approved