hi all, any help would be appreciated! I have tried long long, memoization, etc... i give up ;)
*never mind*... read the sticky.
/* @BEGIN_OF_SOURCE_CODE */
#include <iostream>
using namespace std;
long docycle (long x)
{
long i=1;
while (x!=1)
{
if (x%2==0)
x=x/2;
else
{
i++;
x=(x*3)+1 ...