|
|
A292832
|
|
a(n) is the least positive k, not a power of 2, such that the Hamming weight of k equals the Hamming weight of k^n, or 0 if no such k exists.
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The Hamming weight of a number n is given by A000120(n).
Is this sequence positive for every positive integer?
|
|
LINKS
|
|
|
EXAMPLE
|
For n = 2:
- 1 is a power of 2,
- 2 is a power of 2,
- hence a(2) = 3.
|
|
PROG
|
(PARI) a(n) = forstep(k=3, oo, 2, if (hammingweight(k) == hammingweight(k^n), return (k)))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,hard,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|