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!)
A054085 a(n) = order of in the permutation A054084 of the natural numbers if this order exists; a(n) = -1 otherwise. 2
2, 2, 7, 7, 7, 7, 7, 7, 9, 7, 9, 9, 9, 9, 9, 9, -1, 9, -1, 9, -1, -1, -1, -1, 16, -1, 16, -1, 16, -1, -1, 16, 16, 16, 16, 16, -1, -1, 16, 16, -1, 16, -1, 16, -1, -1, 16, -1, -1, 16, -1, 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16, -1, -1, -1, -1, -1, -1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
3 -> 5 -> 7 -> 10 -> 8 -> 6 -> 4 -> 3, so that 3 has order 7.
MATHEMATICA
a054084[n_] := a054084[n] = If[EvenQ[n], Floor[n/2*GoldenRatio],
Floor[(n + 1)/2*GoldenRatio^2]];
Array[a054084[#] &, 40] (* after Jean-François Alcover *)
Table[Length[NestWhileList[a054084, a054084[n], # != n &, 1,
10000]] /. (10001 -> -1), {n, 1, 500}]
(* Peter J. C. Moses, Jan 26 2022 *)
CROSSREFS
Sequence in context: A347073 A261710 A064288 * A357412 A021443 A045923
KEYWORD
sign
AUTHOR
EXTENSIONS
Data truncated by Sean A. Irvine, Jan 23 2022
Edited by Clark Kimberling, Jan 26 2022
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 16 10:08 EDT 2024. Contains 371698 sequences. (Running on oeis4.)