A249304 Number of zeros in row n of triangle A249133.
0, 0, 1, 1, 3, 5, 5, 3, 7, 13, 13, 11, 13, 15, 13, 7, 15, 29, 29, 27, 29, 31, 29, 23, 29, 39, 37, 31, 33, 35, 29, 15, 31, 61, 61, 59, 61, 63, 61, 55, 61, 71, 69, 63, 65, 67, 61, 47, 61, 87, 85, 79, 81, 83, 77, 63, 73, 91, 85, 71, 73, 75, 61, 31, 63, 125, 125
Offset: 0
Keywords
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Programs
-
Haskell
a249304 n = if n == 0 then 0 else a048967 n + a048967 (n - 1)
-
Mathematica
Join[{0}, Plus @@@ Partition[Table[n + 1 - 2^DigitCount[n, 2, 1], {n, 0, 100}], 2, 1]] (* Amiram Eldar, Jul 28 2023 *)
Comments