The answer for this problem is 2 since it is not specified whether it is adjacent to the right or adjacent to the left.
If it is adjacent to the right, the answer is:
p (k) = 2 * p(1) + 2 * k
If the is adjacent to the left, the answer is:
P (k) = 2 *p(1) +2 * (k-2)