The question is
Consider the topology on $\mathbb{Z}$ that has basis of the form $B(a,k) = \{a + p^k m \mid m \in \mathbb{Z}\}$. Where $a$, $k$ are integers and $k$ is nonnegative, $p$ is a arbitrary prime number. Is $\mathbb{Z}$ connected in this topology?
Here is my attempt.
I want to give a counterexample. I observed that when $p = 2$, $B(1,1) = \{1+2m \mid m \in \mathbb{Z}\}$ and $B(1,0) = \{2m \mid m\in \mathbb{Z}\}$ is a separation, hence disconnected. Then, I concluded that when $p$ is arbitrary, there always exists $B(1,1) \cup \cdots \cup B(p-1,1)$ which are disjoint and seem to be a separation. Am I in the right direction? Any help is greatly appreciated!!
For any $p$, the basic open sets are equivalence classes $\pmod {p^k}$, and those partition $\Bbb Z$, so this topology is disconnected for any $p$.