/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package listaexercicios;

/**
 *
 * @author awolf
 */
public class Questao3 {

    public static void main(String[] args) {
        double a = Entrada.leiaDouble("Qual o valor de a");
        double soma = 0;
        for (int x = 1; x <= 15; x++) {
            soma = soma + x * (x + (4 / a)) - x + a;
        }
        System.out.println(soma);
    }
}
