n
1 <= a*n + b <= 20
n^2
1 <= a*n^2 + b <= 10
log(n)
1 <= a*log(n) + b <= 10