查找系列的第 n 项 [英] Finding the nth term of a series

查看:77
本文介绍了查找系列的第 n 项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找出 DJ(i) 的第 n 项.

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

给定 DJ(i) 是 i 在 DJ(i) 中出现的次数

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

数组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 .....

我想要系列 DJ(i) 的第 n 个学期.我必须对这个词进行一些进一步的计算.

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

推荐答案

在这个表中查找值 或用您选择的编程语言自己计算表格(留作简单练习).还要检查这个 SO answerOEIS.

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.

这篇关于查找系列的第 n 项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆