Below is the table of values of a function. Write the output when the input is n.

input: 2, 5, 7, n

output: 8, 20, 28, ?

Please help!

Output = 4n

Thanks. How about when its

Input: 1,2,3,4,n

output: 11,15,19,23?

How about

Output = 4n + 7 ????

Here's how this is obtained

Slope = [ 15 - 11] / [ 2 - 1 ] = 4/ 1 = 4

So...using the slope and any (input, ouput) point - I'll use (1, 11) - we have

Output = 4 ( n - 1) + 11

Output = 4n - 4 + 11

Output = 4n + 7