login
A290825
Least base-3 digit of n.
2
0, 1, 2, 0, 1, 1, 0, 1, 2, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
OFFSET
0,3
LINKS
FORMULA
a(n) = 2 if and only if n > 0 is in A024023.
a(n) = 0 if n is divisible by 3.
a(n) = min(A010872(n), a(A002264(n))).
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