OFFSET
2,1
COMMENTS
MSD of y can be 0.
a(n) = -1 if n is divisible by 40: see StackExchange link. - Robert Israel, Nov 14 2025
LINKS
Giovanni Resta, Table of n, a(n) for n = 2..100 (all terms <10^50)
R. Israel et al, Does 10^d + 1 have any divisors == -1 (mod 40), Mathematics StackExchange, Nov 2025.
EXAMPLE
a(5) = 3231 = concat(3,231) and 5*3*231 - 3 - 231 = 3231;
a(18) = 16056 = concat(16,056) and 18*16*56 - 16 - 56 = 16056.
MAPLE
with(numtheory): P:=proc(q) local j, k, s, t, n, ok;
for j from 2 to q do ok:=1; for n from 1 to q do if ok=0 then break; else
for k from 1 to ilog10(n) do s:=n mod 10^k; t:=trunc(n/10^k);
if j*s*t-s-t=n then print(n); ok:=0; break; fi; od; fi; od; od; end: P(10^6);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Dec 02 2016
EXTENSIONS
a(10), a(11), a(19)-a(22), a(27), a(28), a(30), a(32), a(33) by Giovanni Resta, Dec 05 2016
STATUS
approved
