Practice questions
These are for practice. The test questions may not be identical to these in difficulty or format.
-
Compute the set of numbers in 1..n that divide n
-
Compute the number of divisors of n in 1..n
-
Compute the smallest number in 1..n that does not divide n
-
Compute the highest power of 2 that divides n
-
Compute the set of numbers in 1..n that are divisible by 3 or 4
-
Plot using equations in parametric form a circle of radius 2 and center 1,1
-
Plot using parametric equations the line x+y=1, in the positive quadrant only
-
Compute the LIST of numbers in 1..n that divide n using the procedure from Q1.
-
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])
-
Compute the set {i^2: i is a factor of n}