|
Search: id:A138664
|
|
|
| A138664 |
|
a(n) = number of positive integers k, k <= n, where the number of one's in the binary representation of each k divides n. |
|
+0 2
|
|
| 1, 2, 2, 4, 3, 6, 3, 7, 5, 9, 4, 12, 4, 10, 8, 12, 5, 18, 5, 15, 11, 14, 5, 24, 5, 15, 14, 18, 5, 25, 5, 21
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
EXAMPLE
|
The integers 1 through 9 in binary are (1, 10, 11, 100, 101, 110, 111, 1000, 1001). So, the numbers of 1's in these binary representations form the sequence (1,1,2,1,2,2,3,1,2) (the first 9 terms of sequence A000120, starting from A000120(1)). 9 is divisible by all the 1's (there are 4 of those) and the one 3. So a(9) = 4+1 = 5.
|
|
CROSSREFS
|
Cf. A138663, A000120.
Sequence in context: A089173 A126090 A058266 this_sequence A140357 A089265 A113885
Adjacent sequences: A138661 A138662 A138663 this_sequence A138665 A138666 A138667
|
|
KEYWORD
|
more,nonn
|
|
AUTHOR
|
Leroy Quet (qq-quet(AT)mindspring.com), Mar 25 2008
|
|
|
Search completed in 0.002 seconds
|