cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

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.

Original entry on oeis.org

3, 3, 56953, 34225258495
Offset: 1

Views

Author

Rémy Sigrist, Sep 24 2017

Keywords

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).

Examples

			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.
		

Crossrefs

Programs

  • PARI
    a(n) = forstep(k=3, oo, 2, if (hammingweight(k) == hammingweight(k^n), return (k)))
Showing 1-1 of 1 results.