OFFSET
1,1
EXAMPLE
17251' = 1725' = 1340, so 17251 is a term.
109999' = 10999' = 664, so 109999 is a term.
MAPLE
with(numtheory): P:=proc(q) local a, k, n, p, x, y; for n from 2 to q do
if not isprime(n) then x:=trunc(n/10); a:=x*add(op(2, p)/op(1, p), p=ifactors(x)[2]);
if n*add(op(2, p)/op(1, p), p=ifactors(n)[2])=a then print(n); fi; fi; od; end: P(10^6);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, Oct 10 2017
STATUS
approved