OFFSET
0,5
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
MATHEMATICA
a[n_]:=FromDigits[Map[If[Mod[ #, 2]==1, (#-1)/2, #/2]&, IntegerDigits[n]]]; Table[a[n], {n, 0, 100}]
PROG
(Haskell)
a106747 n = if n == 0 then 0 else 10 * (a106747 n') + div d 2
where (n', d) = divMod n 10
-- Reinhard Zumkeller, Jan 14 2015
(Python)
def A106747(n): return int(str(n).translate({49:48, 50:49, 51:49, 52:50, 53:50, 54:51, 55:51, 56:52, 57:52})) # Chai Wah Wu, Apr 07 2022
CROSSREFS
KEYWORD
AUTHOR
Zak Seidov, May 12 2005
STATUS
approved