|
| |
|
|
A084345
|
|
Numbers with a nonprime number of 1's in their binary expansion (complement of A052294).
|
|
1
| |
|
|
1, 2, 4, 8, 15, 16, 23, 27, 29, 30, 32, 39, 43, 45, 46, 51, 53, 54, 57, 58, 60, 63, 64, 71, 75, 77, 78, 83, 85, 86, 89, 90, 92, 95, 99, 101, 102, 105, 106, 108, 111, 113, 114, 116, 119, 120, 123, 125, 126, 128, 135, 139, 141, 142, 147, 149, 150, 153, 154, 156, 159, 163
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
EXAMPLE
| a(5)=15 because 15_10=1111_2 and 1+1+1+1=4 is composite.
|
|
|
PROG
| (PARI) for(n=1, 200, b=binary(n); if(!isprime(sum(m=1, matsize(b)[2], b[m])), print1(n, ", ")))
|
|
|
CROSSREFS
| Cf. A052294.
Sequence in context: A097100 A002954 A019278 * A084561 A078613 A072202
Adjacent sequences: A084342 A084343 A084344 * A084346 A084347 A084348
|
|
|
KEYWORD
| easy,nonn,base
|
|
|
AUTHOR
| Zak Seidov (zakseidov(AT)yahoo.com) Jun 22 2003
|
|
|
EXTENSIONS
| More terms from Rick L. Shepherd (rshepherd2(AT)hotmail.com), Jun 23 2003
|
| |
|
|