A019277 Records in A019294, number of iterations of the sigma function to reach a multiple of the starting value.
1, 2, 4, 5, 7, 15, 16, 17, 78, 97, 101, 120, 174, 214, 239, 261, 263, 296, 380, 557, 1287, 1524, 1722, 1911, 2023, 2373
Offset: 1
Links
- Graeme L. Cohen and Herman J. J. te Riele, Iterating the sum-of-divisors function, Experimental Mathematics, 5 (1996), pp. 93-100.
Crossrefs
Programs
-
Mathematica
f[n_, m_] := Block[{d = DivisorSigma[1, n]}, If[Mod[d, m] == 0, 0, d]]; g[n_] := Length[ NestWhileList[ f[ #, n] &, n, # != 0 &]] - 1; a = 0; Do[b = g[n]; If[b > a, a = b; Print[ a]], {n, 460}] (* Robert G. Wilson v, Jun 24 2005 *)
-
PARI
{M=0; for(n=1,oo, my(s=n,m=1); while((s=sigma(s))%n,m++); m>M&&print1(M=m,","))} \\ M. F. Hasler, Jan 07 2020
Formula
Extensions
Definition corrected by M. F. Hasler, Jan 07 2020
Comments