Answer: (n,k,p)=(−4,3,5),(−2,1,19),(−1,4,2),(2,2,7),(4,1,11).
Writing
pk=∣6n2−17n−39∣=∣(2n+3)(3n−13)∣,
we get
2n+3=±pα,3n−13=±pβ
for some non-negative integers α,β. Examining the cases α=0 or β=0, we find the possibilities n=−1,n=−2 and n=4, which gives the solutions (n,k,p)=(−2,1,19),(−1,4,2),(4,1,11).
If α,β≥1, we have p∣(2n+3) and p∣(3n−13), hence we get p∣35,
so p∈{5,7}. Note that pα−β=±3n−132n+3. However, if n≥17 or n≥−5, it is clear that 51<3n−132n+3<1, which means that α−β is not an integer as p∈{5,7}, a contradiction.
As a result, we need to examine the cases −4≤n≤16. We can eliminate some of them directly as follows. Note that if p=5, then we have: n≡1(mod5) whereas p=7 implies n≡2(mod7). Moreover, 3n−13 is odd, so n must be even. Then, we only need to check the values n∈{−4,2,6,16}, which gives the solutions (n,k,p)=(−4,3,5),(2,2,7).