|
|
A022926
|
|
Number of powers of 7 between 2^n and 2^(n+1).
|
|
0
|
|
|
0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = floor(log_7 2^(n + 1)) - floor(log_7 2^n). - Alonso del Arte, Nov 04 2018
|
|
EXAMPLE
|
Between 2^2 and 2^3 there is only one power of 7, which is 7 itself. Hence a(2) = 1.
Between 2^3 and 2^4 there are no powers of 7, so a(3) = 0.
|
|
MATHEMATICA
|
Table[Floor[Log[7, 2^(n + 1)]] - Floor[Log[7, 2^n]], {n, 0, 127}] (* Alonso del Arte, Nov 04 2018 *)
|
|
PROG
|
(Magma) [Floor(Log(7, 2^(n+1))) - Floor(Log(7, 2^n)): n in [0..100]]; // Vincenzo Librandi, Nov 05 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|