2
$\begingroup$

I created a list with all divisors of 18000:

list1 = Divisors[18000]

I did an analysis to identify which of these numbers are divisible by $15$, but the result I got was True and False

list2 = Divisible[#, 15] & /@ list1

Is there a function that shows the numbers and not boolean operation?

$\endgroup$
  • 3
    $\begingroup$ Try Pick[list1, list2]. $\endgroup$ – J. M.'s technical difficulties Mar 14 '18 at 17:03
  • 1
    $\begingroup$ Thanks. I try too... Select[list1, Divisible[#, 15] &] $\endgroup$ – LCarvalho Mar 14 '18 at 17:06
  • 1
    $\begingroup$ You might find GroupBy[list1, Divisible[#, 15] &] useful as well. $\endgroup$ – chuy Mar 14 '18 at 17:07

Browse other questions tagged or ask your own question.