OFFSET
1,5
FORMULA
a(n) = Sum_{k=1..n} c(k) * (ceiling(n/k) - floor(n/k)), where c = A351114.
EXAMPLE
a(15) = 4 since there are 4 balanced numbers less than 15 that do not divide 15, namely: 2, 6, 12, 14.
MATHEMATICA
Table[Sum[(1 - Ceiling[DivisorSigma[1, k]/EulerPhi[k]] + Floor[DivisorSigma[1, k]/EulerPhi[k]]) (Ceiling[n/k] - Floor[n/k]), {k, n}], {n, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jan 06 2024
STATUS
approved