login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
3, 3, 56953, 34225258495 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The Hamming weight of a number n is given by A000120(n).
Is this sequence positive for every positive integer?
a(2) = A292787(2).
a(3) = A292788(2).
LINKS
EXAMPLE
For n = 2:
- 1 is a power of 2,
- 2 is a power of 2,
- A000120(3) = 2 and A000120(3^2) = 2,
- hence a(2) = 3.
PROG
(PARI) a(n) = forstep(k=3, oo, 2, if (hammingweight(k) == hammingweight(k^n), return (k)))
CROSSREFS
Sequence in context: A009498 A076253 A081174 * A264932 A171604 A132139
KEYWORD
nonn,base,hard,more
AUTHOR
Rémy Sigrist, Sep 24 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)