OFFSET
1,2
COMMENTS
Numbers missing from A358350.
The first differences show some periodicity, for example those for values 2184-3811 repeat at terms 5513-7140. - Bill McEachen, Jan 08 2023
LINKS
EXAMPLE
There is no term du_10 < 36 such that du + (d+u) + (d*u) = 36, so 36 is a term.
MAPLE
f:= proc(n) local L; L:= convert(n, base, 10); n + convert(L, `+`)+convert(L, `*`) end proc:
sort(convert({$1..200} minus map(f, {$1..200}), list)); # Robert Israel, Dec 22 2022
MATHEMATICA
f[n_] := n + Total[(d = IntegerDigits[n])] + Times @@ d; With[{m = 180}, Complement[Range[m], Table[f[n], {n, 1, m}]]] (* Amiram Eldar, Dec 19 2022 *)
PROG
(Python)
from math import prod
def sp(n): d = list(map(int, str(n))); return sum(d) + prod(d)
def ok(n): return all(m + sp(m) != n for m in range(n+1))
print([k for k in range(181) if ok(k)]) # Michael S. Branicky, Dec 19 2022
(PARI) f(n) = my(d=digits(n)); vecsum(d)+vecprod(d)+n; \\ A161351
isok(m) = for(i=1, m, if (f(i) == m, return(0))); return(1); \\ Michel Marcus, Jan 09 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Dec 19 2022
STATUS
approved