OFFSET
1,1
COMMENTS
Sum of reciprocals for the x+1 problem is around 0.318.
Sum of reciprocals for the 3x+1 problem is around 0.1116.
The number of steps for the x+1 problem starting at n is A061313(n). The partial sums of A061313 are the sequence 0, 1, 4, 6, 11, 15, 19, 22, 29, 35, 41, ... Selecting the primes from these builds the current sequence. - R. J. Mathar, Feb 01 2008
PROG
(PARI) xpcount(n, p) = { ct=0; sr=0; for(x=1, n, p1 = x; while(p1>1, if(p1%2==0, p1/=2; ct++, p1 = p1*p+1; ct++) ); if(isprime(ct), print1(ct" "); sr+=1.0/ct) ); print(); print(sr) }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Mar 26 2003
STATUS
approved