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!)
A368818 Number of balanced numbers less than n that do not divide n. 1
0, 0, 1, 1, 2, 0, 3, 2, 2, 2, 3, 0, 4, 3, 4, 5, 6, 3, 6, 5, 5, 5, 6, 2, 6, 5, 5, 4, 6, 2, 7, 6, 6, 6, 7, 4, 8, 7, 7, 7, 8, 4, 9, 8, 7, 8, 9, 5, 9, 8, 8, 8, 9, 6, 9, 7, 9, 9, 10, 4, 10, 9, 9, 9, 10, 7, 10, 9, 9, 7, 11, 7, 11, 10, 9, 10, 11, 8, 12, 11, 11, 11, 12, 6, 12 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
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
Sequence in context: A100949 A152164 A263112 * A110493 A118234 A262771
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jan 06 2024
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 August 4 17:04 EDT 2024. Contains 374923 sequences. (Running on oeis4.)