Hi all(adsbygoogle = window.adsbygoogle || []).push({});

I'm am looking for a smart way to make the following conditional in Mathematica:

,Code (Text):if[i == 3*{1,2,3,4,5,N}, ....]

ï.e. if the variableiis a multiple of 3 up to some integerN. How can I do this smartest in Mathematica?

Best,

Niles.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: Conditionals

**Physics Forums | Science Articles, Homework Help, Discussion**