BCMATH programs for some number theory functions
- Calculating Euler's function φ(n), the divisor sum σ(n), the number of prime factors ω(n), the number of divisors d(n) and the Möbius function μ(n), all for small n.
- Listing the divisors of a positive integer.
- Solving φ(x)=n, where φ(x) is Euler's totient function - testing Carmichael's conjecture.
- Calculating σk(n).
- Calculating Ramanujan's tau function τ(n).
- Calculating Fibonacci numbers Fn.
- Calculating the minimal multiplier vector for a sequence of r consecutive Fibonacci numbers Fn,...,Fn+r-1.
- Calculating Lucas numbers Ln.
- Calculating tangent numbers Tn.
- Calculating secant numbers Sn.
- Calculating Euler zigzag numbers An.
- Calculating Bell numbers Bn.
- Calculating Bernoulli numbers Bn.
- Calculating p(n), the number of partitions of n.
Last modified 27th November 2022
Return to main page