The Möbius inversion formula allows recovery of an arithmetic function from its summatory version defined by . Given for up to some limit, the inversion states where is the Möbius function.
The Möbius function is defined as . Its multiplicative property makes Möbius inversion a key result in multiplicative number theory.
When you supply a list of values for , the calculator applies the inversion formula to compute for each integer up to your list length. Choosing the g(n) option performs the forward Dirichlet convolution instead, summing your input across the divisors of each n to recover . This two-way capability makes it easy to study how accumulative and pointwise functions relate.
One classic application is recovering an arithmetic function from its Dirichlet convolution with the constant 1 function. For example, Euler’s totient function can be expressed as a sum over divisors of . Using Möbius inversion on that sum reveals an explicit formula for in terms of the Möbius function. Similar reasoning allows you to derive identities for divisor functions and other important sequences.
The tool helps illuminate the structure of multiplicative functions by letting you test how changing affects the resulting . Try inputting values from well-known sequences, such as the sum of divisors or the identity function, and observe how the inversion isolates individual divisor contributions. Because all calculations happen in your browser, you can explore different cases rapidly without specialized software.
Beyond recreational number theory, Möbius inversion appears in analytic problems where sums over divisors arise naturally. It underlies proofs in the study of the Riemann zeta function and Dirichlet series, offering a method to peel apart convolutions of arithmetic functions. Exploring small examples with this calculator can provide intuition before diving into those deeper applications.
Even if you are new to number theory, experimenting with small sequences can reveal fascinating patterns. Start with simple functions like the identity or constant one and observe how the inversion redistributes weight across divisors. You might notice that squarefree numbers behave differently from those with repeated prime factors—a direct consequence of the Möbius function’s definition.
Once you grasp the basics, consider exploring connections to other combinatorial identities. Möbius inversion has analogues in partially ordered sets and incidence algebras, where it helps invert relations defined by inclusion. The techniques used here mirror those ideas in a more accessible setting of integers and divisors, providing a bridge to broader mathematical concepts.
For deeper experimentation, try computing both directions on the same sequence. Input a short g(n), derive its f(n), then feed those results back in with the opposite mode to verify that you recover the original numbers. Small discrepancies may arise from rounding, underscoring the value of exact arithmetic in theoretical work.
The underlying algorithm iterates over every divisor of each n, so runtime grows with both sequence length and the average number of divisors. It is quick for small inputs but can slow noticeably for long lists. Advanced implementations cache Möbius values or use convolution techniques to accelerate large-scale problems.
Beyond number theory, similar inversion ideas appear in signal processing and combinatorics. Recognizing the pattern in this discrete case builds intuition for transforms like the z-transform or Möbius inversion on partially ordered sets. Exploring sequences here therefore lays groundwork for more sophisticated mathematical tools.
Because the method alternates addition and subtraction based on divisor parity, noisy or approximate data can produce exaggerated swings. If you are analyzing experimental measurements, consider rounding inputs carefully or using rational numbers to maintain stability.
The copy button below the results lets you paste computed sequences into notes, research drafts, or online discussions. Recording interesting examples makes it easier to spot patterns or share insights with fellow enthusiasts.
The Möbius inversion formula is a cornerstone of number theory. It provides a method for recovering an arithmetic function from the summation of its values over the divisors of , typically written as . With Möbius inversion, one can express in terms of by weighting each divisor with the Möbius function .
The Möbius function itself takes the value 1 when is 1, vanishes if contains any squared prime factor, and equals −1 when is squarefree with an odd number of prime factors. Its multiplicative nature makes Möbius inversion an elegant tool for separating out contributions from different divisors.
Applications of the inversion range from combinatorial identities to the study of multiplicative functions like Euler’s totient. By switching between a sum over divisors and a sum weighted by , mathematicians reveal hidden relationships among arithmetic sequences. The technique also underpins the inclusion–exclusion principle in more advanced settings.
This calculator demonstrates the discrete form of Möbius inversion. Provide a list of values for through and it returns the corresponding for each index. The script computes the Möbius function for relevant divisors and performs the necessary summations entirely within your browser.
Experiment by entering simple sequences, such as squares or factorials, to see how the inversion transforms them. The process offers insight into how divisor sums encode information and why the Möbius function plays such a pivotal role in analytic number theory.
The bidirectional feature in the form above lets you move back and forth between a summatory function and its underlying sequence. Try providing a short list as g(n) to generate its cumulative form f(n), then switch modes and paste the output back to confirm the inversion. Copying the results into a spreadsheet or number theory package can further extend your experiments.
Because divisor sums can grow large, keep an eye on numeric overflow or rounding when working with real-world data. If you encounter non-integer values, consider increasing precision or using fractional representations to maintain accuracy.
Compute Möbius transformations of complex numbers.
Determine the nth term and sum of an arithmetic series using the first term, common difference, and number of terms.
Enter two functions f(x) and g(x) to compute the compositions f(g(x)) and g(f(x)) at a specified value.