In maple I am trying to get a list of the multiples of 3. I have attempted to use a for loop. The loop works alone; I have tested it to separately. When I attempt to use a if then statement in the do part of my for loop something goes funky. I believe it is my if statement that is off because the error I get is 'invalid if statement termination'. My coding is below any suggestions are welcome!
for a from 1 by 1 to 2000 do if type((a)/(3),integer)=true then print(a) end do;