OFFSET
0,3
COMMENTS
See A004724 for a variant where a(n) disappears when n has only digits 5. - M. F. Hasler, Jan 13 2020
MATHEMATICA
Table[FromDigits[DeleteCases[IntegerDigits[n], 5]], {n, 0, 79}] (* Harvey P. Dale, Jan 20 2015 *)
PROG
(PARI) a(n)=subst(Pol(select(k->k-5, digits(n))), 'x, 10) \\ Charles R Greathouse IV, Oct 16 2012
(PARI) A004180(n)=fromdigits([d|d<-digits(n), d!=5]) \\ M. F. Hasler, Jan 13 2020
(Scala) (0 to 99).map(n => try {
Integer.parseInt(Integer.toString(n).replace("5", ""))
} catch {
case _: NumberFormatException => 0
}) // Alonso del Arte, Jan 13 2020
(MATLAB) for u=0:74 ; v=dec2base(u, 10)-'0'; v = v(v~=5); if length(v)>0; sol(u+1)=(str2num(strrep(num2str(v), ' ', ''))); else; sol(u+1)=0; end; end; sol % Marius A. Burtea, Jan 13 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved