A166007
Number of ones in the binary representation of the middle member q of the prime triple (p,q,r) with p
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, 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, 7, 7, 9, 8, 3, 6, 6, 7, 7, 7, 7, 6, 7, 8, 6, 6, 5, 8
Offset: 1
Examples
For n = 3, (p, q, r) = (11, 13, 17), q = 13 Decimal 13 = Binary 1101 a(3) = Number of ones in 1101 = 3
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
DigitCount[#,2,1]&/@Transpose[Select[Partition[Prime[Range[1000]],3,1], Last[#]-First[#]==6&]][[2]] (* Harvey P. Dale, Dec 03 2014 *)
Extensions
More terms from Harvey P. Dale, Dec 03 2014