dodana metoda getN do fibonacci, pronic i star