OFFSET
1,1
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
EXAMPLE
a(3)=1 by definition;
PROG
/* C program fragment, omitting formal details, n!=3 */
k=0;
p=A006995(n);
while A178225(p)==1
{
k++;
p=A206915(p);
}
return k;
(PARI)
up_to = 65537;
A178225(n) = (Vecrev(n=binary(n))==n);
A206915list(up_to) = { my(v=vector(up_to+1), s=0); for(n=1, up_to+1, s += A178225(n-1); v[n] = s); (v); };
v206915 = A206915list(up_to);
A206915(n) = v206915[1+n];
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Hieronymus Fischer, Mar 12 2012
STATUS
approved