OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..5000
MATHEMATICA
a[n_]:=FromDigits[Map[If[Mod[ #, 2]==1, (#-1)/2, # ]&, IntegerDigits[n]]]; Table[a[n], {n, 0, 100}]
PROG
(Python)
def A107130(n): return int(str(n).translate({49:48, 51:49, 53:50, 55:51, 57:52})) # Chai Wah Wu, Apr 07 2022
(PARI) a(n)=fromdigits(apply(d->if(d%2, d\2, d), digits(n))) \\ Charles R Greathouse IV, Apr 07 2022
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Zak Seidov, May 12 2005
EXTENSIONS
Edited by Charles R Greathouse IV, Aug 03 2010
STATUS
approved