OFFSET
1,1
COMMENTS
This sequence contains A007013(k) for any k > 0.
We can devise a set of primitive fixed points of A300948, say P, as follows:
- P contains the powers of 2, say 2^i, such that A300948(2^i) = 2^i (in that case, i = a(k)-1 for some k > 0),
- and the sums of two distinct powers of 2, say 2^i + 2^j, such that A300948(2^i) = 2^j,
- we can uniquely write any term of this sequence as a sum of distinct terms of P.
FORMULA
For any n > 0 with binary expansion Sum_{i=0..k} b_i * 2^i, a(n) = Sum_{i=0..k} b_i * p(i+1) (where p(i) denotes the i-th term of the set P described in the Comments section).
EXAMPLE
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Mar 16 2018
STATUS
approved