Electronic properties of La3Ni2O7 and Ln4Ni3O10, Ln=La, Pr and Nd