import java.util.*; class naruto { double series() { int f=1,s=0,i; for(i=1;i<=9;i++) { f*=i; if (i%2!=0) s+=f; } return s; } double series (int n) { double i=0.0,s=0.0; for(i=2;i<=n*2;i+=2) { s+=(i+(i+2))/(i*(i+2)); } return s; } double series(int n,int x) { double i,s=0.0; for(i=1;i<=n;i++) { s=s+(i/Math.pow(x,i)); } return s; } }