P(x)=(x−α)(x−β)(x−γ)
Substituting x=6, we get
3=(6−α)(6−β)(6−γ)
Now, possible combinations of roots satisfying the above equation
(i) α=3, β=5, γ=5⇒a=13
(ii) α=3, β=7, γ=7⇒a=17
(iii) α=9, β=5, γ=7⇒a=21
Now, sum of all values of a is 51=17×3
Total number of positive integral divisors of 51 =4