|
Search: id:A144145
|
|
|
| A144145 |
|
A positive integer n is included if n contains the same number of 0's as 1's when represented in binary and the number of 0's (or the number of 1's) divides n. |
|
+0 1
|
|
| 2, 10, 12, 42, 156, 172, 180, 184, 204, 212, 216, 228, 232, 240, 535, 555, 565, 570, 590, 595, 620, 625, 665, 675, 690, 710, 740, 775, 790, 805, 810, 820, 835, 850, 865, 880, 905, 920, 930, 2142, 2166, 2172, 2262, 2268, 2292, 2334, 2358, 2364, 2382, 2394
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
LINKS
|
Leroy Quet, Home Page (listed in lieu of email address)
|
|
EXAMPLE
|
42 in binary is 101010. This contains the same number of 0's as 1's and that number (3) divides 42. So 42 is included in the sequence.
|
|
MATHEMATICA
|
Select[Range[5000], DigitCount[ #, 2, 0] == DigitCount[ #, 2, 1] && Mod[ #, DigitCount[ #, 2, 0]] == 0 &] [From Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Sep 15 2008]
|
|
CROSSREFS
|
Sequence in context: A071162 A075165 A061855 this_sequence A075170 A039571 A080981
Adjacent sequences: A144142 A144143 A144144 this_sequence A144146 A144147 A144148
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Leroy Quet Sep 11 2008
|
|
EXTENSIONS
|
More terms from Stefan Steinerberger (stefan.steinerberger(AT)gmail.com) and Dmitry Kamenetsky (dkamen(AT)rsise.anu.edu.au), Sep 15 2008
|
|
|
Search completed in 0.002 seconds
|