OFFSET
1,1
COMMENTS
FORMULA
a(n) <= n for n > 1.
a(n)=p(k), where p(k) can be determined by the following iteration: set k=0, p(0)=A006995(n). Repeat while A178225(p(k))==1, set k=k+1, p(k)=A206915(p(k-1)) end repeat [for n<>3].
Recursion for n<>3:
Case 1: a(n)=n, if n is not a binary palindrome;
Case 2: a(n)=a(A206915(n)), else.
EXAMPLE
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Hieronymus Fischer, Mar 12 2012
STATUS
approved