OFFSET
1,1
COMMENTS
Leading zeros are not allowed in b.
Includes all n >= 23 with n == 3 or 9 (mod 10), and all n >= 211 with n == 11 (mod 100).
Are there terms not of these forms?
Includes forms n == 142857 (mod 1000000) for n >= 2142857. - Michael S. Branicky, May 16 2021
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(25) = 143 is a term because 143 mod (14*3) = 17 = 14+3.
MAPLE
filter:= proc(n) local k, a, b;
for k from 1 to ilog10(n) do
a:= n mod 10^k;
b:= (n-a)/10^k;
if a < 10^(k-1) then next fi;
if n mod (a*b) = a+b then return true fi
od;
false
end proc:
select(filter, [$10..1000]);
PROG
(Python)
def ok(n):
s = str(n)
for i in range(1, len(s)):
if s[i] == '0': continue
a, b = int(s[:i]), int(s[i:])
if n%(a*b) == a+b: return True
return False
print(list(filter(ok, range(1, 324)))) # Michael S. Branicky, May 16 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, May 16 2021
STATUS
approved