OFFSET
0,3
MATHEMATICA
Array[FromDigits@ Map[If[EvenQ[#], # + 1, #] &, IntegerDigits[#]] &, 78, 0] (* Michael De Vlieger, Feb 17 2022 *)
PROG
(Python 3)
for n in range(1000):
s = str(n)
res = ''
for d in s:
if (int(d) & 1)==0: d = str(int(d)+1)
res += d
print(int(res), end=', ')
(Python)
def A351744(n): return int(str(n).translate({48:49, 50:51, 52:53, 54:55, 56:57})) # Chai Wah Wu, Apr 07 2022
(PARI) a(n) = if (n, fromdigits(apply(x->if(!(x%2), x+1, x), digits(n))), 1); \\ Michel Marcus, Feb 18 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Feb 17 2022
STATUS
approved