Write a program to compute 1/22/33/4n/n1 with a given n input by console (n>0) Example If the following n is given as input to the program 5 Then, the output of the program should be 355 in Python by Dhineshbabu • 130 points •The sum of the first n squares, 1 2 2 2 n2 = n ( n 1) (2 n 1)/6 For example, 1 2 2 2 10 2 =10×11×21/6=385 This result is usually proved by a method known as mathematical induction, and whereas it is a useful method for showing that a formula is true, it does not offer any insight into where the formula comes from Instead weView solution If a n 1 = a n − n 2 n and a 1 = 3 then the value of ∣ a 2 0 − a 1 5 ∣ =
2
1*2*3*4*5*n formula