OFFSET
0,3
COMMENTS
a(n) = 0 when n = 0 or when n is a 3-repdigit (A002277). a(n) = n when it contains no 3 among its digits. - Alonso del Arte, Oct 16 2012
EXAMPLE
a(13) = 1 because after deleting the 3 from its base 10 representation, we're left with 1.
a(14) = 14 because there are no 3s to delete.
MATHEMATICA
Table[FromDigits[DeleteCases[IntegerDigits[n], 3]], {n, 0, 74}] (* Alonso del Arte, Oct 16 2012 *)
PROG
(PARI) a(n)=subst(Pol(select(k->k-3, digits(n))), 'x, 10) \\ Charles R Greathouse IV, Oct 16 2012
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved