OFFSET
0,2
COMMENTS
Conjecture: a(n)/n -> log_4(7) = 1.403677461..., i.e., about half of the bits of 7^n are nonzero.
LINKS
Hugo Pfoertner, Plot of a(n) - 1.40368*n, +-4*sqrt(n), n up to 10^6.
EXAMPLE
The first few powers of 7 and their binary representation are as follows:
n | 0 | 1 | 3 | 4 | 5 | 6 | ...
----+---+-----+--------+-----------+--------------+-----------------+----
7^n | 1 | 7 | 49 | 343 | 2401 | 16807 | ...
----+---+-----+--------+-----------+--------------+-----------------+----
bin | 1 | 111 | 110001 | 101010111 | 100101100001 | 100000110100111 | ...
----+---+-----+--------+-----------+--------------+-----------------+----
a(n)| 1 | 3 | 3 | 6 | 5 | 7 | ...
----+---+-----+--------+-----------+--------------+-----------------+----
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Apr 17 2024
STATUS
approved