Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • CalcMe
                      • Commands
                      • Arithmetic
                      • Arithmetic

                      Möbius function

                      Reading time: 1min

                      For any positive integer n, the Möbius function μ(n) is defined as

                      μ(n)=-1 if n is a square - free positive integer with an odd number of prime factors 0 if n has a squared prime factor 1 if n is a square -free positive integer with an even number of prime factors

                      Syntax

                      mu_moebius(Integer)
                      

                      Description

                      Given an integer n, returns μ(n) as defined above.

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Integrate
                      • Numerical integration
                      • Numerical differentiation
                      • Prime?

                      Möbius function

                      Syntax Description

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand