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.

Showing 1-2 of 2 results.

A053048 a(n) is the number of terminal iterations applied to powers of 2 arising in the iterations of the Euler phi function with initial value n!.

Original entry on oeis.org

0, 1, 1, 3, 5, 6, 7, 10, 10, 13, 16, 18, 20, 22, 24, 28, 32, 33, 34, 38, 39, 43, 47, 50, 54, 57, 57, 60, 63, 66, 69, 74, 77, 82, 85, 87, 89, 91, 93, 98, 103, 105, 107, 112, 114, 119, 124, 128, 130, 135, 139, 143, 147, 148, 153, 157, 158, 162, 166, 170, 174, 178, 179
Offset: 1

Views

Author

Labos Elemer, Feb 25 2000

Keywords

Examples

			For n = 10, the initial value is 10! = 3628800 and the iteration chain is {3628800, 829440, 221184, 73728, 24576, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1}. The first power of 2 is 8192, after which phi is applied 13 additional times to reach the stationary value 1.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Max@ IntegerExponent[ FixedPointList[ EulerPhi, n!], 2]; Array[a, 63] (* Giovanni Resta, May 30 2018 *)

Formula

a(n) = log_2(A053047(n)). - Amiram Eldar, Aug 17 2024

A053038 The first (largest) power of 2 arising in the iteration-sequence when A051953 (the cototient function) is repeatedly applied starting with n!.

Original entry on oeis.org

1, 2, 4, 16, 32, 128, 512, 4096, 16384, 2048, 8192, 65536, 16384, 65536, 8388608, 134217728, 8388608, 8388608, 16777216, 2097152, 8388608, 268435456, 4398046511104, 70368744177664, 67108864, 67108864, 67108864, 68719476736
Offset: 1

Views

Author

Labos Elemer, Feb 24 2000

Keywords

Examples

			For n = 10, initial value = 10! = 3628800; after the following initial terms {3628800, 2799360, 2052864, 1430784, 974592, 656640, 490752, 329472,  237312, 158976, 108288, 72960, 54528, 36608, 21248, 10752, 7680, 5632, 3072, ...}, the first power of 2 is 2048 = cototient(3072). Therefore a(10) = 2048.
		

Crossrefs

Programs

  • Mathematica
    Table[NestWhile[# - EulerPhi@ # &, n!, ! IntegerQ@ Log2@ # &], {n, 28}] (* Michael De Vlieger, Aug 15 2017 *)
Showing 1-2 of 2 results.