a) Among any 8 consecutive integers there exists one of the form 8j+4. This number has the property (p) because the factor 2 from its prime factorization has the exponent 2. Therefore there can be at most 7 consecutive positive integers that do not have the property (p). Since none of the numbers 29, 30, 31, 32, 33, 34, 35 has the property (p), the largest k is k=7.
b) Since the numbers 98=2⋅72, 99=32⋅11, and 100=22⋅52 have the property (p), so will the numbers 98+(7⋅3⋅2)3⋅k, 99+(7⋅3⋅2)3⋅k, and 100+(7⋅3⋅2)3⋅k.
Alternative solution.
By the Chinese remainder theorem, there exist an infinite number of solutions for the system of simultaneous congruences: n≡4(mod8), n≡8(mod27), n≡23(mod125). Then n,n+1, and n+2 all have the property (p) because the factor 2, 3, and 5, respectively, has the exponent 2 in their prime factorizations.