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.

A166007 Number of ones in the binary representation of the middle member q of the prime triple (p,q,r) with p

This page as a plain text file.
%I A166007 #5 Dec 03 2014 12:44:00
%S A166007 3,3,3,2,3,3,4,4,4,5,5,5,3,4,5,5,4,6,5,6,6,7,5,4,7,7,6,7,6,7,4,4,9,5,
%T A166007 6,6,6,7,7,8,6,5,5,5,9,8,6,7,8,9,4,5,6,8,7,6,6,9,4,7,7,8,7,7,6,7,7,7,
%U A166007 7,7,9,8,3,6,6,7,7,7,7,6,7,8,6,6,5,8
%N A166007 Number of ones in the binary representation of the middle member q of the prime triple (p,q,r) with p<q<r=p+6.
%H A166007 Harvey P. Dale, <a href="/A166007/b166007.txt">Table of n, a(n) for n = 1..1000</a>
%e A166007 For n = 3, (p, q, r) = (11, 13, 17), q = 13
%e A166007 Decimal 13 = Binary 1101
%e A166007 a(3) = Number of ones in 1101 = 3
%t A166007 DigitCount[#,2,1]&/@Transpose[Select[Partition[Prime[Range[1000]],3,1], Last[#]-First[#]==6&]][[2]] (* _Harvey P. Dale_, Dec 03 2014 *)
%Y A166007 Cf. A098414, A014499
%K A166007 base,nonn
%O A166007 1,1
%A A166007 Steven Lubars (lubars(AT)gmail.com), Oct 03 2009
%E A166007 More terms from _Harvey P. Dale_, Dec 03 2014