%N Ordinal transform of A265332.
%C This is a fractal sequence.
%C It appears that each group of 2^k terms starts with 1 and ends with the remaining powers of two from 2^k down to 2^1.
%C From _Antti Karttunen_, Jan 09-12 2016: (Start)
%C This is ordinal transform of A265332, which is modified A051135 (with a(1) = 1, instead of 2). - after _Franklin T. Adams-Watters_' original definition for this sequence.
%C A000079 (powers of 2) indeed gives the positions of ones in this sequence. This follows from the properties (3) and (4) of A004001 given on page 227 of Kubo & Vakil paper (page 3 of PDF), which together also imply the pattern observed above, more clearly represented as:
%C a(2) = 1.
%C a(3..4) = 2, 1.
%C a(6..8) = 4, 2, 1.
%C a(13..16) = 8, 4, 2, 1.
%C a(28..31) = 16, 8, 4, 2, 1.
%H Antti Karttunen, <a href="/A162598/b162598.txt">Table of n, a(n) for n = 1..8192</a>
%H T. Kubo and R. Vakil, <a href="http://dx.doi.org/10.1016/0012-365X(94)00303-Z">On Conway's recursive sequence</a>, Discr. Math. 152 (1996), 225-252.
%H <a href="/index/Ho#Hofstadter">Index entries for Hofstadter-type sequences</a>
%F Let b(1) = 1, b(n) = A051135(n) for n > 1. Then a(n) is the number of b(k) that equal b(n) for 1 <= k <= n: sum( 1, 1<=k<=n and a(k)=a(n) ).
%F If A265332(n) = 1, then a(n) = A004001(n), otherwise a(n) = a(A080677(n)-1) = a(n - A004001(n)). - _Antti Karttunen_, Jan 09 2016
%o (Scheme, with memoization-macro definec)
%o (definec (A162598 n) (if (= 1 (A265332 n)) (A004001 n) (A162598 (- (A080677 n) 1))))
%o ;; _Antti Karttunen_, Jan 09 2016
%Y Cf. A004001, A051135, A080677, A087686.
%Y Row index of A265901, column index of A265903.
%Y Cf. A265332 (corresponding other index).
%Y Cf. A000079 (positions of ones).
%Y Cf. A000225 (from the term 3 onward the positions of 2's).
%Y Cf. A000325 (from its third term 5 onward the positions of 3's, which occur always as the last term before the next descending subsequence of powers of two).
%A _Franklin T. Adams-Watters_, Jul 07 2009
%E Name amended by _Antti Karttunen_, Jan 09 2016