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$

closed as off-topic by Daniel Lichtblau, m_goldberg, Jason B., Coolwater, gwr Mar 15 '18 at 8:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Daniel Lichtblau, m_goldberg, Jason B., Coolwater, gwr
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    $\begingroup$ Try Pick[list1, list2]. $\endgroup$ – J. M. is away 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.