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.

A072578 In binary representation: k has the same number of 0's as the k-th prime has 1's.

Original entry on oeis.org

8, 16, 34, 44, 64, 65, 80, 106, 116, 128, 138, 140, 174, 178, 184, 193, 196, 209, 258, 259, 260, 263, 264, 266, 272, 280, 288, 290, 314, 316, 325, 326, 327, 328, 330, 338, 344, 385, 391, 402, 449, 514, 520, 521, 528, 544, 566, 570, 574, 578, 587, 590, 597
Offset: 1

Views

Author

Reinhard Zumkeller, Jun 23 2002

Keywords

Examples

			In binary representation 80 = '1010000' has five 0's and A000040(80) = 409 = '110011001' has five 1's: therefore 80 is a term.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[600],DigitCount[#,2,0]==DigitCount[Prime[#],2,1]&] (* Harvey P. Dale, Jan 07 2014 *)

Formula

A000120(A072581(n)) = A023416(a(n)) = A014499(n).
a(n) = A049084(A072581(n)).