OFFSET
1,2
COMMENTS
The matrix is to be taken of minimal size, i.e., have n lines and the number of columns needed to write n in base 2 in the last line, A070939(n). Otherwise said, there is no zero column.
The number of zeros in the last line of the matrix is given by A023416(n).
One has a(n)=a(n-1) iff n = 2^k-1 for some k.
EXAMPLE
a(4)=7 is the number of zeros in the matrix
[001] /* = 1 in binary */
[010] /* = 2 in binary */
[011] /* = 3 in binary */
[100] /* = 4 in binary */
PROG
(PARI) A168160(n)=n*#binary(n)-sum(i=1, n, norml2(binary(i)))
CROSSREFS
KEYWORD
base,nonn
AUTHOR
M. F. Hasler, Nov 22 2009
STATUS
approved