Hi, Try: sum(sapply(1:100,function(i) i^3+ 4*(i^2))) #[1] 26855900 169551560477066118158651749177/79632685831739040000 #[1] 2129170437
sum(sapply(1:25,function(i) ((2^i)/i)+ ((3^i)/(i^2)))) #[1] 2129170437 A.K. I have done this on myself using paper and I know the answer for A is 26,855,900 B I got 169,551,560,477,066,118,158,651,749,177/79,632,685,831,739,040,000 So sorry for the constant questions here. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.