|
Search: id:A057168
|
|
|
| A057168 |
|
Next larger integer with same binary weight (number of 1 bits) as n. |
|
+0 2
|
|
| 2, 4, 5, 8, 6, 9, 11, 16, 10, 12, 13, 17, 14, 19, 23, 32, 18, 20, 21, 24, 22, 25, 27, 33, 26, 28, 29, 35, 30, 39, 47, 64, 34, 36, 37, 40, 38, 41, 43, 48, 42, 44, 45, 49, 46, 51, 55, 65, 50, 52, 53, 56, 54, 57, 59, 67, 58, 60, 61, 71, 62, 79, 95, 128, 66, 68, 69, 72, 70, 73, 75
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
Binary weight is given by A000120.
|
|
REFERENCES
|
Beeler, M., Gosper, R. W., and Schroeppel, R. HAKMEM. MIT AI Memo 239, Feb. 29, 1972 (Item 175).
|
|
LINKS
|
Beeler, M., Gosper, R. W., and Schroeppel, R., HAKMEM ITEM 175
|
|
EXAMPLE
|
a(6)=9 since 6 has two one-bits (i.e. 6=2+4) and 9 is the next higher integer of binary weight two (7 is weight three and 8 is weight one).
|
|
CROSSREFS
|
Cf. A000120, A006519, A057169.
Sequence in context: A101410 A110991 A076990 this_sequence A087711 A123128 A057064
Adjacent sequences: A057165 A057166 A057167 this_sequence A057169 A057170 A057171
|
|
KEYWORD
|
easy,nonn,nice
|
|
AUTHOR
|
Marc LeBrun (mlb(AT)well.com), Sep 14 2000
|
|
|
Search completed in 0.002 seconds
|