P(n)=23n+a is divisible by 7
As, P(n) is true for all natural numbers of n.
it is also true for n=1.
For n=1,P(1)=8+a is divisible by 7 , if a=−8,−1,6
So, minimum positive value of a=6
now check for P(n):23n+6 is also true for n=n+1
P(n+1):23n+3+6=8(7+1)n+6 is also divisible by 7, is true
So, P(n) is 23n+6.