%I A069716
%S A069716 1,2,3,4,5,6,7,8,9,25,0,34,0,27,35,0,0,29,0,45,37,0,0,38,0,0,0,47,0,56,
%T A069716 0,0,0,0,57,49,0,0,0,58,0,67,0,0,59,0,0,0,0,0,0,0,0,0,0,78,0,0,0,345,0,
%U A069716 0,79,0,0,0,0,0,0,257,0,89,0,0,0,0,0,0,0,0,0,0,0,347,0,0,0,0,0,259,0,0
%N A069716 Smallest number such that the LCM of the digits equals n, or 0 if no
such number exists.
%F A069716 a(n)=Min{x; Apply[LCM, IntegerDigits[x]]=n}.
%e A069716 n=20: a(20)=45 because LCM[4,5]=20. If one solution exists, then an infinite
number of solutions exists. E.g. for n=20 455,445555555,545544 etc.
are also solutions.
%t A069716 f[x_] := Apply[LCM, IntegerDigits[x]] t = Table[0, {256} ]; Do[ s = f[n];
If[s < 257 && t[[s]] == 0, t[[s]] = n], {n, 1, 10000} ]; t
%Y A069716 Cf. A068189, A069716.
%Y A069716 Sequence in context: A061862 A007532 A068189 this_sequence A095289 A095706
A096867
%Y A069716 Adjacent sequences: A069713 A069714 A069715 this_sequence A069717 A069718
A069719
%K A069716 easy,nonn,base
%O A069716 1,2
%A A069716 Labos E. (labos(AT)ana.sote.hu), Apr 02 2002
|