OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
Number 122 is in sequence because 1*2*2=4.
MATHEMATICA
Select[Range[125000], CompositeQ[#]&&Times@@IntegerDigits[#]==4&] (* Harvey P. Dale, May 15 2025 *)
(* Alternative: *)
Module[{nn=6, f, t}, f=Flatten[Table[Select[FromDigits/@Permutations[PadRight[{4}, d, 1]], CompositeQ], {d, nn}]]; t=Flatten[Table[Select[FromDigits/@Permutations[PadRight[{2, 2}, d, 1]], CompositeQ], {d, nn}]]; Join[f, t]]//Sort (* The second program is much faster than the first. *) (* Harvey P. Dale, May 15 2025 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Nov 25 2011
STATUS
approved
