OFFSET
1,1
COMMENTS
A term t must have m = A007814(t-1), and k follows from that so that the representation is unique.
For a given odd k >= 3, terms have 1 < 2^m < k which is m is in the range 1 <= m <= floor(log_2(k)).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..11703 (terms corresponding to k < 2500)
FORMULA
EXAMPLE
Initial terms and their k and m begin
n = 1 2 3 4 5 6 7 8 9 10 11 ...
a(n) = 3, 7, 5, 11, 13, 15, 21, 9, 19, 29, 25, ...
k = 3 5 5 7 7 9 9 9 11 11 11
m = 1 1 2 1 2 1 2 3 1 2 3
runs \---/ \---/ \-------/ \-------/
For odd k=7 and m=2, we have 1<2^2<7, so a(n)=(7-2^2)*2^2+1=13 where n=A001855((7-1)/2)+2=3+2=5.
MATHEMATICA
Table[(k - 2^m)*2^m + 1, {k, 3, 35, 2}, {m, 1, Log2[k-1]}] // Flatten (* Amiram Eldar, Aug 13 2025 *)
CROSSREFS
KEYWORD
AUTHOR
Thomas Ordowski, Aug 13 2025
EXTENSIONS
More terms from Amiram Eldar, Aug 13 2025
STATUS
approved
