login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A244638
In the '3x+1' problem, primes which as starting values set new records for number of steps to reach 1, where a step means either 'divide by two' or 'triple plus one and then divide by two'.
3
2, 3, 7, 19, 31, 41, 73, 97, 193, 257, 313, 487, 859, 937, 1249, 2539, 3331, 3947, 5351, 5839, 7963, 9257, 12343, 21943, 31687, 45127, 60169, 78791, 115547, 180463, 213881, 234239, 270271, 376603, 875681, 1023871, 1252663, 1564063, 2585279, 4063723, 5649499, 9973919, 11200681, 39824647, 41464303, 73583071, 95592191, 226588897, 1359533387, 2263333321, 3349304527
OFFSET
1,1
MATHEMATICA
f[n_] := Length@ NestWhileList[ If[ OddQ@ #, (3 # + 1)/2, #/2] &, n, # > 1 &] mx = 0; p = 2; lst = {}; While[p < 10^10/2, a = f@ p; If[a > mx, mx = a; Print[{PrimePi@p, p, a - 1}]; AppendTo[ lst, p]]; p = NextPrime@ p]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved