|
Search: id:A162145
|
|
|
| A162145 |
|
a(n) = the number of non-composites (primes or 1) that are n digits long when written in binary. |
|
+0 2
|
| |
|
|
OFFSET
|
1,2
|
|
|
FORMULA
|
a(n)=A036378(n-1), n>2. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 27 2009]
|
|
EXAMPLE
|
The consecutive primes 17 (10001 in binary), 19 (10011 in binary), 23 (10111 in binary), 29 (11101 in binary), and 31 (11111 in binary) are the only primes each written with exactly 5 digits in binary. There are 5 of these primes, so a(5) = 5.
|
|
CROSSREFS
|
A004676
Sequence in context: A097006 A033306 A136347 this_sequence A145876 A039878 A039886
Adjacent sequences: A162142 A162143 A162144 this_sequence A162146 A162147 A162148
|
|
KEYWORD
|
base,more,nonn
|
|
AUTHOR
|
Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), Jun 25 2009
|
|
|
Search completed in 0.002 seconds
|