Answer:
3n+2
Explanation:
- they informed that it is a linear function.
- so, let the required linear function be ax+b.
[where, a and b are some constants and x is a variable ( input values)]
- when x=1, the output is 5
so, a+b=5
so,2a+b=8
- solving the above 2 equations,
subtract the first equation from second:
2a+b-a-b=8-5
a=3.
by substituting the value of a in one of the above equations,
you will get b as 2
so, when the input is n, output will be : 3n+2