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!)
A351115 Number of balanced numbers <= n. 1
1, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A balanced number k is a number such that phi(k) | sigma(k).
LINKS
FORMULA
a(n) = Sum_{k<=n, phi(k)|sigma(k)} 1.
a(n) = Sum_{k=1..n} c(k), where c is the characteristic function of balanced numbers (A351114).
EXAMPLE
a(15) = 7; the 7 balanced numbers <= 15 are 1,2,3,6,12,14,15.
MATHEMATICA
f[n_] := Boole[Divisible[DivisorSigma[1, n], EulerPhi[n]]]; Accumulate @ Array[f, 100] (* Amiram Eldar, Feb 01 2022 *)
PROG
(PARI) a(n) = sum(k=1, n, if (!(sigma(k) % eulerphi(k)), 1)); \\ Michel Marcus, Feb 01 2022
CROSSREFS
Cf. A000010 (phi), A000203 (sigma), A020492 (balanced numbers), A351114.
Sequence in context: A194847 A262070 A117806 * A085423 A260998 A361110
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jan 31 2022
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 23 06:04 EDT 2024. Contains 371906 sequences. (Running on oeis4.)