Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


partha karmakar
series
1 Answer(s)      2 years ago
Posted in : Java Beginners


s=1/a+2/a^2+2/a^3+3/a^3+.........n


Advertisement
View Answers

July 6, 2012 at 1:09 PM


logic is :->

long sum=0;

for(int i=1;i<=n;i++){

sum=sum+i/(math.pow(a,i))

}

System.out.println("sum:"+sum);



Related Tutorials/Questions & Answers:
series
series  series 2-4+6-8+..............-20
series printing
series printing  Question:- write a program to print the following series:- 0,1,3,6,15,21,28
Advertisements
series printing
series printing  Question:- write a program to print the following series:- 0,1,3,6,15,21,28
SERIES PROGRAMMING
SERIES PROGRAMMING  WAP to print the followin series till n terms: S = 1-4+9-16+25.............n
Series Program
Series Program  Please help me to write code for this series Write a Java Method to solve the following problem: a.Evaluate the result of the series: 1-2+3-4+5-6+â?¦â?¦+n (or â???n depending on value of n
sum of the series
sum of the series  Program to sum the series 1+1/1!+1/2!+1/3!+....n
Series Program
Series Program  Please help me to write code for this series Write a Java Method to solve the following problem: a.Evaluate the result of the series: 1-2+3-4+5-6+??+n   hi friend, Try the following code may
LOOP-HOLE SERIES GENERATION
LOOP-HOLE SERIES GENERATION  QUESTION:- WRITE A PROGRAM TO GENERATE THE FOLLOWING SERIES CALLED LOOPHOLE SERIES:- 3,5,53,13,19,7,19,13,53,5,3
LOOP-HOLE SERIES GENERATION
LOOP-HOLE SERIES GENERATION  QUESTION:- WRITE A PROGRAM TO GENERATE THE FOLLOWING SERIES CALLED LOOPHOLE SERIES:- 3,5,53,13,19,7,19,13,53,5,3
java programming:generating series
java programming:generating series  WAP to print series: | + || + ||| + |||| + .......... n terms
TIME SERIES DOUBT
TIME SERIES DOUBT  HI.................... In my project i am using the xydataset code to show the series output or graph say. In that each series has color taken by it on itself by default means first series has red then yellow
Time series sorce code
Time series sorce code   hi.......... I want to show the output of my project as time series. Can u give me a simple code for time series. Where i... series forecasting the future......... source code in java swings. ? plz help
fibonacci series logics
fibonacci series logics  A form contains 20 text fields, these fields.... Now we have fibonacci series number by which we have to find that numbers inserted by the user in fibonacci series or nearby. for each text field value. and show
Time series sorce code
Time series sorce code   hi.......... I want to show the output of my project as time series. Can u give me a simple code for time series. Where i... series forecasting the future......... source code in java swings. ? plz help
HOW TO SHOW TIME SERIES
HOW TO SHOW TIME SERIES  hi................ i require a small code in java swings to display the output as time series. Can u plz help???????? Reply....... thanks in advance
Series of long Integers
Series of long Integers  write a program to print the series of long integer number? Write a program in java to find out whether the given number is prime or not   Hello Friend, 1)Fibonacci series: import java.util.
sum of fibonacci series
sum of fibonacci series  Write a Java program to print Fibonacci series upto n and find their sum also. 0+1+1+2+3+5+8+13+21â?¦â?¦â?¦â?¦=sum   Hi, Please see the thread Fibonacci program. Thanks
printing series in java
printing series in java  1 123 12345 1234567 12345 123 1   Here is a code for the following pattern: 1 123 12345 1234567 12345 123 1 class Pattern{ public static void main(String[] args
java programming:generating series
java programming:generating series  Write a program to generate series: 12345 1234 123 12 1 1 12 123 1234 12345 12345   Here is a code that displays the following pattern: 12345 1234 123 12 1 1 12 123 1234
Series program in Java - Java Beginners
Series program in Java  Wap to print the series and find the sum:- 1... the start of the series * @param 'end' holds the end of the series * @param 'series' holds the series need to be printed */ StringBuffer series
WAP in java to print the series 1*2*3
WAP in java to print the series 1*2*3  WAP in java to print the series 123
Chart Series Class in Flex4
Chart Series Class in Flex4: The chart series classes are used for render a data in a chart control. The series classes are used mx.charts.chartClasses.Series class package. All series classes are subclasses of this package. Every
Find sum of series
Find sum of series This section illustrates you how to find the sum of n terms of the series using recursion. For this purpose, we have created a recursive function that takes the parameter 'n' up to which the sum of the series
Using JFreeChart to display recent changes in a time series
Using JFreeChart to display recent changes in a time series  Using JFreeChart to display recent changes in a time series
Messages Brokers,MQ Series,TIBCO - Java Beginners
Messages Brokers,MQ Series,TIBCO  Any one explain where we use these technologies "Messages Brokers","MQ Series","TIBCO". In the above 3 technologies which one is better for me. i did SCJP1.5 and i am working on Struts
program to display the first ten terms of the series
program to display the first ten terms of the series  Write a program to display the first ten terms of the following series : 1) 1,-3,5,-7,9..... 2) 3,6,12,24..... 3) 2,5,10,17....... 4) 0,1,2,3,6............ 5) 0,3,8,15
1-2+5-10+17-26 sum the series - Java Beginners
{ /** * @param 'series' holds the series need to be printed */ StringBuffer series = new StringBuffer(); public static void main(String[] args...; series = series.append(temp); if(j%2 == 0){ evenNums
1.Computing cos(x) using the cosine series: Recall that cos(x) is given by the following series: - Java Interview Questions
1.Computing cos(x) using the cosine series: Recall that cos(x) is given by the following series:   Write a program to compute cosine of a number x using the above series. Ignore terms less than 0.00001.  Hi friend
Multiple Data Series in Chart in Flex4
Multiple Data Series in Chart in Flex4: In This example you can see how we can use multiple data series in a single chart. Every chart has a its own data series. These are following: 1. AreaSeries 2. BarSeries 3. BubbleSeries 4
code for timer in java netbeans for online test series countdown timer
code for timer in java netbeans for online test series countdown timer  code for timer in java netbeans for online test series countdown timer
Fibonacci series in java
Fibonacci series in java In this section you will learn about fibonacci number in java.  Fibonacci number or Fibonacci sequence are the number in the following sequence  0, 1, 1, 2, 3, 5, 8, 13, 21....... The first two
Ordinal Numbers Series Program in Java
Ordinal Numbers Series Program in Java An ordinal number shows a relative position, e.g., 1st, 2nd, 3rd, 4th,etc. In other words, ordinal numbers series are the words representing the rank of a number with respect to some order
This series of progressive examples shows a typical pattern for building simple applications with a window.
Java NotesAbout Examples This series of progressive examples shows a typical pattern for building simple applications with a window. Example - First Window shows a main program that creates an empty window (JFrame). Example
Example to show Enumeration exception in java
Example to show Enumeration exception in java       Enumeration is mean of retaining all the series of element at a time. An object implement interface generates a series of all
Foresight Linux 0.9.4 MR4 has been released
Foresight Linux 0.9.4 MR4 has been released This is the fourth in a series of maintenance releases for Foresight Linux 0.9.4. These maintenance releases help... based systems management.  This is the fourth in a series of maintenance
JSP Array
JSP Array          Array is defined as the set of similar type of data in series. The Array can be String, int or character kind of datatypes
Hibernate Mapping
Hibernate Mapping In this Hibernate Mapping tutorials series you will learn Hibernate in depth. We will show everything on Hibernate Mappings with running code example. We have used easy to learn examples that will help you understand
ADL
ADL       ADL Pack series is the extension package for Joyistar WebShop with more powerful function and beautiful UI. And also it's the standard AJAX library. Read full Description
Design Pattern
Design Pattern       ?Pattern? word suggests a series of events occurring in a definite order. Many a times, you get an easy way to tackle a recurring problem (which has been
About Examples
Java NotesAbout Examples This series of progressive examples shows a typical pattern for building simple applications with a window. Example - First Window shows a main program that creates an empty window (JFrame). Example
'if' Statement - 'else if' style
Java Notes'if' Statement - 'else if' style Series of tests It is common to make a series of tests on a value, where the else part... part, it isn't easy to see that these are really a series of tests
Struts 2 Guide
Struts 2 Guide       This is first example of Struts 2 in this Complete application development tutorial series. You must finish this Struts 2 Guide in day 1 itself. Struts is vast topic
 

 

 

DMCA.com