-
1
说明: The famous Collatz sequence is generated by a method decribed as follows. Given a positive integer N, if it is odd, then replace it with 3*N+1. For even number N, use N/2 instead. You can get a sequence of number by this method. It is conjectured that the algorithm above will terminate at 1 for any integral input value. Despite the simplicity of the algorithm, it is unknown whether this conjecture is true. It has been verified, however, for all integers n such that 0 < n < 1,000,000 (and, in fact, for many more numbers than this.)
(Input
The first line contains a single integer T tells that there are T cases in the problem. Then for each case, there is an integers N.
Output
For each number N, output the sequence generated in a line, using coma as its separator.
)
- 2012-12-08 20:33:43下载
- 积分:1
-
WOA
1基于MapReduce的K-Means聚类算法,
2基于MapReduce的分类算法
3MapReduce的频繁项集挖掘算法(1 K-Means clustering algorithm based on MapReduce,
2 classification algorithm based on MapReduce
3 Mining Algorithm for frequent itemsets based on MapReduce)
- 2018-07-11 17:26:13下载
- 积分:1
-
数据库 企业人事
数据库课程设计报告 企业人事(含代码)
- 2022-04-21 05:35:23下载
- 积分:1
-
MyJbpm
这是一个基于jbpm4.3的小项目,oracle10g数据库,一个完整的请假流程(This is a small project jbpm4.3' s, oracle10g database, a complete flow of leave)
- 2013-12-09 21:57:37下载
- 积分:1
-
dulwqcommunication
拷贝和排序,本程序能实现A[N]与B[M],其中这两个数组都按升序排列,合并为一个C[M+N]数组,且按升序排列,()
- 2018-03-14 14:23:09下载
- 积分:1
-
51CTOoracle
51cto中的关于oracle的一部分PPt(The 51cto part PPt on the oracle)
- 2016-04-18 19:24:03下载
- 积分:1
-
基于协同过滤算法的电影推荐系统
电影推荐系统中运用的推荐算法是基于协同过滤算法(Collaborative Filtering Recommendation)。协同过滤是在信息过滤和信息系统中正迅速成为一项很受欢迎的技术。
- 2023-07-02 19:45:05下载
- 积分:1
-
jptimized
超长整形数据计算程序,达到128位,同时计算速度进行了优化(The calculation program of super-long shaping data reaches 128 bits, and the calculation speed is optimized at the same time.)
- 2018-08-04 16:51:49下载
- 积分:1
-
数据库餐饮课设含报告源码
有数据流图,er图,数据字典
- 2020-11-28下载
- 积分:1
-
Elaslic-finite-finite
弹性波数值模拟 时间域有限差分算法 双相介质(Numerical Simulation of Elastic Wave in time Domain finite difference algorithm for Dual-phase medium)
- 2018-09-11 22:51:07下载
- 积分:1