OFFSET
1,3
COMMENTS
Original name: number of periodic cycles of iterative map described by Ma and Wainwright.
REFERENCES
David W. Hobill and Scott MacDonald (zeened(AT)shaw.ca), Preprint, 2004.
P. K-H. Ma and Wainright, A dynamical systems approach to the oscillatory singularity in Bianchi cosmologies, Relativity Today, 1994.
LINKS
P. K-H. Ma and Wainright, A dynamical systems approach to the oscillatory singularity in Bianchi cosmologies, Deterministic Chaos in General Relativity, pp. 449-462, 1994.
FORMULA
a(n) = A000031(n) - (5 + (-1)^n)/2. - Andrew Howroyd, Dec 21 2019
EXAMPLE
a(3) = 2 because the two necklaces 123 and 132 have no adjacent equal elements. - Andrew Howroyd, Dec 21 2019
MATHEMATICA
Table[Mod[n, 2] - 3 + DivisorSum[n, EulerPhi[n/#] 2^# &]/n, {n, 37}] (* Michael De Vlieger, Dec 22 2019 *)
PROG
(PARI) a(n)={n%2 - 3 + sumdiv(n, d, eulerphi(n/d)*2^d)/n} \\ Andrew Howroyd, Dec 21 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 28 2004
EXTENSIONS
Name changed by Andrew Howroyd, Dec 21 2019
a(1)-a(2) prepended and terms a(20) and beyond from Andrew Howroyd, Dec 21 2019
STATUS
approved