OFFSET
1,4
LINKS
Grant Garcia, Table of n, a(n) for n=1..10000
FORMULA
Conjecture: lim inf a(n) = infinity. The lim inf grows quite slowly: e.g. a(2047)=7. Weaker conjecture: 2, 3 and 7 are the only n for which a(n) = 1. Note that a(n)=1 implies n=2 or n=2^k-1; probabilistically, the chance that 2^k-1 has no zeros just in base 3 is C^k, where C = (2/3)^(log(2)/log(3)) ~ .774, so the number of exceptions should be finite. It appears that 2^15-1 is the last n with no zeros in either base 2 or 3 (and it does have zeros in base 5). - Franklin T. Adams-Watters, Nov 07 2005
G.f.: (Sum_{b>=2} (Sum_{k>=0} x^(b^(k+1))/(Sum_{0<=i<b} x^(i*b^k)))/(1-x)) - Franklin T. Adams-Watters, Nov 07 2005
MATHEMATICA
f[n_] := Count[Flatten@ Table[ IntegerDigits[n, b], {b, 2, n + 1}], 0]; Array[f, 90] (* Robert G. Wilson v, Nov 14 2012 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved