Statistics for Pentagonal nanowires: a first-principles study of the atomic and electronic structure