Jump to content

Recommended Posts

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

  • mukunda1

    6

  • gabbarsingh1

    6

  • ZuniorVentiyar

    5

  • suryausa

    5

Popular Days

Top Posters In This Topic

Posted

1+2+3+4+...........+1250

 

1250(1250 +1)/2 =781785

 

 

So what are u asking here is sum of 1 to 1250 which is 1+2+3+4+.....+1249+1250, is that correct?

 

If so it is 1250*1251/2= 781875

 

 

neenu commerce student ni ... so math lo chala week but this is -   (N*(N+1))/2 kadhaaa

 

 

Y divided by 2.

Posted

Instance created only once, but called 1250 times

 

 

pls ans if you know.

 

let say u have a programe. there is one main object. you created instance for it to be called everytime this program is invoked.

 

this instance is created one time when one execution of this program is done for one item (each item calls one instance). when second item is created, it will call this instance two times. third item is created, it will call the instance three times and so forth, fifth etc.

 

now you have 1250 items total to be created. how many times this instance is created total?

 


 

 

Posted

Sum of n Natural Numbers = n(n+1)/2 ani Sinappudu Saduvukunnam kadha Man.,.. :3D_Smiles_38:

Posted

Sum of n Natural Numbers = n(n+1)/2 ani Sinappudu Saduvukunnam kadha Man.,.. :3D_Smiles_38:

 

math formulas avasarm ledhu man, ee question ki, see above...as long as the question is articulated the way it is, my answer is correct...

 

raoramesh.gif?1367783669

 

 

 

Posted

math formulas avasarm ledhu man, ee question ki, see above...as long as the question is articulated the way it is, my answer is correct...

 

raoramesh.gif?1367783669

english.gif.. adhi antha sadive opika ledhu.. ekkado 1+2.. N edho kanipinchindhi.. so dhaaniki kuda taada ani.. Replied wid Formula..

Posted

this is what confusing me...in real time analysis i am getting the number around 781875*2...fuk this job.

it is factorial man

Posted

oka programme vundhi - deenini call chesina prathi sariiii oka instance create avtundhi for that main object 

 

oka main object vundhi - anni times anthe kadha 1250 times programme call aythe 1250 instances ae create avthay idhi na solution 

 

example servlets ae teesuko java lo enni requests vasthe anni instances pudathay servlet ki each and every request ki alage idh ikuuda 

 

Posted

man ... ee programming language ..... java aithy  I may help U ....

this is what confusing me...in real time analysis i am getting the number around 781875*2...fuk this job.

 

Posted

I dont think it is factorial. 

Suppose 4th item is created, so the instance is called 4 times as mentioned in the problem statement.

So the total number of times the instance called till now is 4+3+2+1 = 10

Factorial of 4 is , 4! = 4*3*2*1 = 24.

 

So I think it is sum of N numbers = N(N+1)/2 as other DB members posted.

This is true only if he wants to find out the total times the instance is called from 1st item to 1250th item.

 

Correct me if I am wrong...

 

×
×
  • Create New...