

A256990


Onebased row index of n in array A256995.


7



0, 1, 1, 1, 2, 3, 1, 2, 4, 3, 1, 5, 6, 7, 2, 4, 8, 3, 1, 9, 10, 5, 6, 11, 7, 2, 12, 13, 14, 15, 4, 8, 16, 3, 1, 17, 18, 9, 10, 19, 5, 6, 20, 21, 22, 11, 7, 23, 2, 12, 24, 25, 13, 14, 26, 15, 4, 27, 28, 29, 30, 31, 8, 16, 32, 3, 1, 33, 34, 17, 18, 35, 9, 10, 36, 37, 38, 19, 5, 39, 6, 20, 40, 41, 21, 22, 42, 11, 7
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,5


COMMENTS

Also onebased column index for array A256997.
a(1) = 0 by convention, as 1 is outside of the actual arrays A256995 & A256997.


LINKS



FORMULA

In other words, a(1) = 0, and for n > 1, if n = A055938(k) for some k, then a(n) = k, otherwise it must be that n = A005187(h) for some h, in which case a(n) = a(h).


PROG

(Scheme, with memoizationmacro definec)


CROSSREFS



KEYWORD

nonn


AUTHOR



STATUS

approved



