OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..100
FORMULA
a(n) = (1/n) * Sum_{d | n} totient(n/d) * A201551(d). - Andrew Howroyd, Mar 02 2017
EXAMPLE
Some solutions for n=4:
.-4...-7...-7...-7...-4...-3...-3...-5...-2...-5...-7...-6...-6...-7...-6...-7
..0....4...-1....6....2...-3...-1....1....0...-3....6....3....5....1...-1...-2
..6....3....2...-1....1...-1...-2....7....1....3...-3...-3....5....7....0....4
.-2....0....6....2....1....7....6...-3....1....5....4....6...-4...-1....7....5
MATHEMATICA
comps[r_, m_, k_] := Sum[(-1)^i*Binomial[r - 1 - i*m, k - 1]*Binomial[k, i], {i, 0, Floor[(r - k)/m]}]; a[n_Integer, k_] := DivisorSum[n, EulerPhi[n/#] comps[#*(k + 1), 2 k + 1, #] &]/n; a[n_] = a[n, 7]; Array[a, 20] (* Jean-François Alcover, Nov 01 2017, after Andrew Howroyd *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Feb 29 2012
EXTENSIONS
a(14)-a(20) from Andrew Howroyd, Mar 02 2017
STATUS
approved