cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A095952 Initial values for f(x)=phi(sigma(x)) such that iteration of f ends in cycle of length=1.

Original entry on oeis.org

1, 2, 3, 5, 8, 9, 12, 14, 15, 19, 20, 22, 23, 26, 29, 41, 43, 128, 156, 168, 186, 189, 200, 201, 217, 231, 237, 240, 248, 254, 260, 266, 271, 285, 291, 297, 303, 304, 313, 314, 329, 332, 335, 337, 341, 346, 350, 366, 368, 383, 387, 395, 413, 427, 430, 436, 437
Offset: 1

Views

Author

Labos Elemer, Jul 13 2004

Keywords

Examples

			n=100: trajectory={980, 648, 880, 720, 720}
		

Crossrefs

Programs

  • Mathematica
    g[n_] := EulerPhi[ DivisorSigma[1, n]]; f[n_] := f[n] = Block[{lst = NestWhileList[g, n, UnsameQ, All ]}, -Subtract @@ Flatten[ Position[lst, lst[[ -1]]]]]; Select[ Range[1540], f[ # ] == 1 &] (* Robert G. Wilson v, Jul 14 2004 *)
  • PARI
    is(n)=my(t=f(n),h=f(t));while(t!=h,t=f(t);h=f(f(h)));t==f(t) \\ Charles R Greathouse IV, Nov 22 2013