OFFSET
1,1
COMMENTS
Equivalently, Bogotá numbers that are not Colombian and that can be written as (m + product of digits of m) for some m and also as (t * sum of digits of t) for some t.
The only primes that can belong to this sequence are repunits > 11 whose indices are in A004023. It is known that these primes belong to A336983 but do they belong also to A337718 and A337816?
Observation: 7 of the first 13 terms are perfect squares: 4, 16, 81, 144, 900, 2025, 2304 (see examples).
LINKS
EXAMPLE
4 = 2 + 2 = 2 + 2 = 2 * 2 = 2 * 2;
16 = 8 + 8 = 8 + 8 = 4 * 4 = 4 * 4;
81 = 72 + (7+2) = 63 + (6*3) = 9 * 9 = 9 * 9;
144 = 135 + (1+3+5) = 128 + (1*2*8) = 18 * (1*8) = 24 * (2+4).
MATHEMATICA
m = 40000; Select[Intersection @@ Union /@ Transpose[Table[{n + (s = Plus @@ (d = IntegerDigits[n])), n + (p = Times @@ d), n*s, n*p}, {n, 1, m}]], # <= m &] (* Amiram Eldar, Sep 25 2020 *)
PROG
(PARI) lista(nn) = {my(vd = vector(nn, k, digits(k)), vs = vector(nn, k, vecsum(vd[k])), vp = vector(nn, k, vecprod(vd[k])), vsp = Set(vector(nn, k, k+vp[k])), vss = Set(vector(nn, k, k+vs[k])), vps = Set(vector(nn, k, k*vs[k])), vpp = Set(vector(nn, k, k*vp[k])), vk = vector(nn, k, k)); Vec(setintersect(vk, setintersect(vsp, setintersect(vss, setintersect(vps, vpp))))); } \\ Michel Marcus, Oct 01 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Sep 25 2020
EXTENSIONS
Terms a(7) and beyond from Amiram Eldar, Sep 25 2020
STATUS
approved