as it is a choice problem pick a value of p. 11 seems the most reasonable
11^6-1 =
1771560
this number is divisible by 7.
this number is divisible by 8 since 560 is divisible by 8
this number is divisible by 9 since 1+7+7+1+5+6+0=27 which is divisible by 9
implies this number is divisible by 7*8*9
PS:
For checking for divisibility by 7. There are many methods for checking
I use this one. From the number work from right to left multiply by 1,2,3,-1,-2,-3,1,2,3,.... and add the result
for this case 1*
0 + 3*
6 +2*
5 - 1*
1 - 3*
7-2*
7+1*
1= -7 which is divisible by 7.
Also Dan have proposed a method in an earlier post.