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.

A208541 Number of n-bead necklaces of 5 colors allowing reversal, with no adjacent beads having the same color.

Original entry on oeis.org

5, 10, 10, 55, 102, 430, 1170, 4435, 14570, 53764, 190650, 704370, 2581110, 9608050, 35791470, 134301715, 505290270, 1909209550, 7233629130, 27489127708, 104715393910, 399827748310, 1529755308210, 5864083338770, 22517998136934, 86607770318380
Offset: 1

Views

Author

R. H. Hardin, Feb 27 2012

Keywords

Examples

			All solutions for n=3:
..1....1....1....2....3....2....1....2....1....1
..2....2....3....3....4....4....4....3....3....2
..4....3....4....4....5....5....5....5....5....5
		

Crossrefs

Column 5 of A208544.

Programs

  • Mathematica
    T[n_, k_] := If[n == 1, k, (DivisorSum[n, EulerPhi[n/#]*(k - 1)^# &]/n + If[OddQ[n], 1 - k, k*(k - 1)^(n/2)/2])/2]; a[n_] = T[n, 5]; Array[a, 26] (* Jean-François Alcover, Nov 01 2017, after Andrew Howroyd *)

Formula

a(2n+1) = A106367(2n+1)/2 for n > 0, a(2n) = (A106367(2n) + 5*4^n/2)/2. - Andrew Howroyd, Mar 12 2017

Extensions

a(21)-a(26) from Andrew Howroyd, Mar 12 2017