OFFSET
0,7
COMMENTS
The largest value known in this sequence is a(219)=78553595.
2^32 < a(238) < 11442739136455298475. - Martin Ehrenstein, Aug 21 2021
Jeremy Sawicki found that a(238) = 107150589645. - Dmitry Kamenetsky, Aug 25 2024
LINKS
Dmitry Kamenetsky, Table of n, a(n) for n = 0..237
Dmitry Kamenetsky, Smallest m>1 such that the number of Collatz steps needed for 238!+m to reach 1 differs from that of 238!+1., Mathematics StackExchange, Aug 2021.
EXAMPLE
a(6) = 3, because 6!+1, 6!+2 and 6!+3 all take 46 steps to reach 1, while 6!+4 requires 20 steps to reach 1.
MATHEMATICA
f[n_] := Length[NestWhileList[If[EvenQ@#, #/2, 3 # + 1] &, n, # != 1 &]] - 1; Table[k = 1; While[f[n! + k] == f[n! + k + 1], k++]; k, {n, 0, 100}] (* Bence Bernáth, Aug 14 2021 *)
PROG
(PARI) a6577(n0)={my(n=n0, k=0); while(n>1, k++; n=if(n%2, 3*n+1, n/2)); k};
for(n=0, 80, my(n0=n!+1, nc=a6577(n0), k=1); while(a6577(n0++)==nc, k++); print1(k, ", ")) \\ Hugo Pfoertner, Aug 04 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Dmitry Kamenetsky, Aug 03 2021
STATUS
approved