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.

A107345 From the binary representation of n: binomial(number of zeros, number of blocks of contiguous zeros).

This page as a plain text file.
%I A107345 #14 Mar 31 2015 16:47:36
%S A107345 1,1,1,1,2,1,1,1,3,2,1,1,2,1,1,1,4,3,3,2,3,1,1,1,3,2,1,1,2,1,1,1,5,4,
%T A107345 6,3,6,3,3,2,6,3,1,1,3,1,1,1,4,3,3,2,3,1,1,1,3,2,1,1,2,1,1,1,6,5,10,4,
%U A107345 10,6,6,3,10,6,4,3,6,3,3,2,10,6,4,3,4,1,1,1,6,3,1,1,3,1,1,1,5,4,6,3,6,3,3
%N A107345 From the binary representation of n: binomial(number of zeros, number of blocks of contiguous zeros).
%C A107345 a(n) = binomial(A023416(n), A087116(n)); a(A003754(n)) = 1.
%C A107345 First occurrence of k: 1, 4, 8, 16, 32, 34, 128, 256, 512, 66, 2048, 4096, 8192, 16384, 130, 65536, 131072, 262144, 524288, 266, 258, ..., . k must occur by 2^k. - _Robert G. Wilson v_
%C A107345 Record values: 1, 4, 8, 16, 32, 34, 66, 130, 258, 514, 522, 1026, 1034, 2058, 4106, 4138, 8202, 8234, 16394, 16426, 32810, 65578, 65706, 131114, 131242, 262186, 262314, 524458, 1048746, 1049258, 2097322, 2097834, 4194474, 4194986, 8389290, 8391338, ..., . - _Robert G. Wilson v_
%H A107345 Reinhard Zumkeller, <a href="/A107345/b107345.txt">Table of n, a(n) for n = 0..10000</a>
%H A107345 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%t A107345 f[n_] := Block[{id = IntegerDigits[n, 2]}, Binomial[ Count[id, 0], Floor[(Length@ Split@ id + 1)/2]]]; Table[f@n, {n, 0, 102}] (* _Robert G. Wilson v_, Apr 01 2008 *)
%o A107345 (Haskell)
%o A107345 a107345 n = a007318' (a023416 n) (a087116 n)
%o A107345 -- _Reinhard Zumkeller_, Mar 31 2015
%Y A107345 Cf. A007088, A107782, A136277.
%Y A107345 Cf. A007318, A023416, A087116.
%K A107345 nonn
%O A107345 0,5
%A A107345 _Reinhard Zumkeller_, May 23 2005