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!)
A318731 Number of relatively prime Lyndon compositions (aperiodic necklaces of positive integers) with sum n. 11
1, 0, 1, 2, 5, 7, 17, 27, 54, 93, 185, 324, 629, 1143, 2175, 4050, 7709, 14469, 27593, 52276, 99839, 190371, 364721, 698508, 1342170, 2580165, 4970952, 9585232, 18512789, 35787985, 69273665, 134211600, 260300799, 505278705, 981706783 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
Moebius transform of A059966. Second Moebius transform of A008965.
EXAMPLE
The a(6) = 7 relatively prime Lyndon compositions are 15, 114, 132, 123, 1113, 1122, 11112.
The a(7) = 17 relatively prime Lyndon compositions:
16, 25, 34,
115, 142, 124, 133, 223,
1114, 1213, 1132, 1123, 1222,
11113, 11212, 11122,
111112.
MATHEMATICA
LyndonQ[q_]:=Array[OrderedQ[{q, RotateRight[q, #]}]&, Length[q]-1, 1, And]&&Array[RotateRight[q, #]&, Length[q], 1, UnsameQ];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], LyndonQ[#]&&GCD@@#==1&]], {n, 10}]
CROSSREFS
Sequence in context: A066028 A066039 A142341 * A256062 A303677 A303802
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 02 2018
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:27 EDT 2024. Contains 371708 sequences. (Running on oeis4.)