login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A096852 a(n) is the length of terminal cycle of the trajectory of f(x)=phi(sigma(x)) if started at 2^n. 10
1, 1, 2, 1, 3, 2, 2, 1, 2, 2, 6, 2, 1, 6, 2, 1, 2, 3, 11, 11, 2, 2, 15, 15, 18, 18, 18, 18, 12, 12, 12, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = A095955(2^n). - Charles R Greathouse IV, Nov 27 2013
EXAMPLE
n=18: start = 262144 and the corresponding 11-cycle is 262144, 524286, [368640, 381024, 326592, 550368, 435456, 580608, 851840, 552960, 524160, 442368, 432000], 368640, ...
MATHEMATICA
g[n_] := EulerPhi[ DivisorSigma[1, n]]; f[n_] := Block[{lst = NestWhileList[g, n, UnsameQ, All]}, -Subtract @@ Flatten[ Position[lst, lst[[ -1]]]]]; Table[ f[2^n], {n, 0, 20}]
PROG
(PARI) f(x)=eulerphi(sigma(x))
a(n)=my(t=f(2^n), h=f(t), s); while(t!=h, t=f(t); h=f(f(h))); t=f(t); h=f(t); s=1; while(t!=h, s++; t=f(t); h=f(f(h))); s \\ Charles R Greathouse IV, Nov 27 2013
CROSSREFS
Sequence in context: A300712 A282463 A265337 * A096857 A358379 A358553
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 16 2004
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Jul 17 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)