Finding the nth term of a series

感情迁移 提交于 2020-01-17 04:29:05

问题


Find the n'th term of DJ(i).

Given DJ(i) is the number of times i is present in DJ(i)

The array DJ(i) is as shown:

   i       1 2 3 4 5 6 7 8 9 10 ..... 
DJ(i)      1 2 2 3 3 4 4 4 5  5 .....

I want the nth term of the series DJ(i). I have to carry out some further calculations with the term.


回答1:


Look up the value in this table or compute yourself the table in the programming language of your choice (left as an easy exercise). Also check this SO answer and OEIS.



来源:https://stackoverflow.com/questions/12881980/finding-the-nth-term-of-a-series

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!