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.

A096198 Triangle read by rows: T(m,n)=A029837(m)+A029837(n), where (m,n)=(1,1); (2,1), (1,2); (3,1), (2,2), (1,3); ...

This page as a plain text file.
%I A096198 #7 Aug 20 2015 05:29:08
%S A096198 0,1,1,2,2,2,2,3,3,2,3,3,4,3,3,3,4,4,4,4,3,3,4,5,4,5,4,3,3,4,5,5,5,5,
%T A096198 4,3,4,4,5,5,6,5,5,4,4,4,5,5,5,6,6,5,5,5,4,4,5,6,5,6,6,6,5,6,5,4,4,5,
%U A096198 6,6,6,6,6,6,6,6,5,4,4,5,6,6,7,6,6,6,7,6,6,5,4,4,5,6,6,7,7,6,6,7,7,6,6,5,4
%N A096198 Triangle read by rows: T(m,n)=A029837(m)+A029837(n), where (m,n)=(1,1); (2,1), (1,2); (3,1), (2,2), (1,3); ...
%C A096198 A029837(n) is the smallest k such that 2^k>=n. T(m,n) is the solution to the following simple problem. What is the minimum number of cuts needed to divide a sheet of paper whose sides are in the ratio m:n into mn square pieces of equal size? (A single cut means either cutting one rectangle into two smaller rectangles or placing two or more sheets on top of one another and cutting through the lot in one go.)
%e A096198 Array begins
%e A096198 0
%e A096198 1 1
%e A096198 2 2 2
%e A096198 2 3 3 2
%e A096198 3 3 4 3 3
%t A096198 t[n_, k_] := Ceiling[Log[2, k]] + Ceiling[Log[2, n-k+1]]; Table[t[n, k], {n, 1, 14}, {k, 1, n}] // Flatten (* _Jean-François Alcover_, Feb 24 2015 *)
%Y A096198 Cf. A029837.
%K A096198 easy,nonn,tabl
%O A096198 1,4
%A A096198 _Paul Boddington_, Jul 26 2004