Explicație pas cu pas:
rezolvarea este anexata
am fixat noțiunile pentru 6 cifre și apoi am extrapolat pt n