OFFSET
0,3
COMMENTS
Since 10^2,10^3,... appear earlier than 3*10^2,3*10^3,..., then it is natural to conjecture, that, beginning with n=4, a(n)=0 or 1.
PROG
(PARI) conv(n) = if (n==0, 0, if (n>0, 3, 1));
nbdv(v, d) = my(m=0); for(i=1, #v, if(v[i]==d, m++)); m;
a(n) = {nb3 = 0; nb1 = 0; forprime (j=1, 2^n, v = digits(j); d3 = nbdv(v, 3); d1 = nbdv(v, 1); if (d3 > d1, nb3++); if (d1 > d3, nb1++); ); conv(nb3 - nb1); } \\ Michel Marcus, Aug 04 2014
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Vladimir Shevelev, Jul 27 2014
EXTENSIONS
More terms from Peter J. C. Moses, Jul 27 2014
STATUS
approved