A072577 Numbers k such that k and the k-th prime have the same number of 0's in their binary representation.
5, 6, 20, 22, 24, 28, 31, 32, 34, 37, 41, 42, 49, 50, 67, 68, 81, 82, 84, 88, 89, 93, 94, 138, 139, 140, 141, 142, 143, 147, 151, 157, 165, 192, 194, 198, 200, 202, 206, 207, 232, 236, 241, 262, 265, 270, 271, 284, 285, 295, 301, 328, 329, 332, 333, 337
Offset: 1
Examples
In binary representation 20 and A000040(20) = 71 have three 0's: 13 = '10100' and 71 = '1000111', therefore 20 is a term.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
q[k_] := DigitCount[k, 2, 0] == DigitCount[Prime[k], 2, 0]; Select[Range[350], q] (* Amiram Eldar, Jul 28 2025 *)