OFFSET
1,1
COMMENTS
The definition implies that no digit is zero. - N. J. A. Sloane, Mar 27 2025
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
38 is neither divisible by 3 nor 8 nor 11 (i.e. 3+8).
MAPLE
filter:= proc(n) local L;
L:= convert(n, base, 10);
not member(0, L) and not ormap(t -> n mod t = 0, [op(L), convert(L, `+`)])
end proc:
select(filter, [$1..1000]); # Robert Israel, Mar 19 2025
MATHEMATICA
test1[n_] := Module[{dig = IntegerDigits[n]}, Union[Table[IntegerQ[n/dig[[i]]], {i, Length[dig]}]]] == {False};
test2[n_] := Module[{dig = IntegerDigits[n]}, Not[IntegerQ[n/Sum[dig[[i]], {i, Length[dig]}]]]];
Table[If[test1[n] && test2[n], n, 0], {n, 200}] // Union // Rest (* José María Grau Ribas, Feb 17 2010 *)
ndQ[n_]:=Module[{idn=IntegerDigits[n]}, FreeQ[idn, 0]&&NoneTrue[n/ Join[ idn, {Total[idn]}], IntegerQ]]; Select[Range[2000], ndQ] (* Harvey P. Dale, Oct 19 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Meenakshi Srikanth (menakan_s(AT)yahoo.com), Apr 30 2003
EXTENSIONS
More terms from Harvey P. Dale, Oct 19 2016
STATUS
approved
