整数型模型n
我正在开发一个模块,其中涉及一组自然 数字。因此,我需要对一些整数类型的 n 进行建模。我怎样才能 去做吧?
例如。从 1 开始连续递增的 i 序列的 i 之和 = n(n+1)/2
我如何在这里建模 n ?
I am working on a module which involves a set of natural
numbers. As a result I need to model some n of type integer. How can I
go about it?
Eg. sum of i for continuously increasing sequence of i starting at 1 =
n(n+1)/2
How can I model n here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要求是我们应该能够使用 n 作为整数。我想我明白了。
The requirements are that we should be able to use n as an integer. I think I figured it out.