OFFSET
0,3
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
11 = 102_3 so a(11)=0.
MAPLE
seq(min(convert(n, base, 3)), n=0..100);
MATHEMATICA
Table[Min[IntegerDigits[n, 3]], {n, 0, 120}] (* Harvey P. Dale, Dec 19 2017 *)
PROG
(PARI) a(n) = if (n==0, 0, vecmin(digits(n, 3))); \\ Michel Marcus, Aug 12 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert Israel, Aug 11 2017
STATUS
approved