Practice questions

These are for practice. The test questions may not be identical to these in difficulty or format.
  1. Compute the set of numbers in 1..n that divide n
  2. Compute the number of divisors of n in 1..n
  3. Compute the smallest number in 1..n that does not divide n
  4. Compute the highest power of 2 that divides n
  5. Compute the set of numbers in 1..n that are divisible by 3 or 4
  6. Plot using equations in parametric form a circle of radius 2 and center 1,1
  7. Plot using parametric equations the line x+y=1, in the positive quadrant only
  8. Compute the LIST of numbers in 1..n that divide n using the procedure from Q1.
  9. Given our knowledge of lists what do you expect is the difference between plot([sin(t),cos(t)],t=0..2·Pi) and plot([sin(t),cos(t),t=0..2·Pi])
  10. Compute the set {i^2: i is a factor of n}