Extended Kitaev chain with longer-range hopping and pairing