Studying number theory with deep learning: a case study with the Möbius and squarefree indicator functions

David Lowry-Duda
2/14/2025
1 citation
math.NTcs.LG

No official code found. Best implementation: davidlowryduda/mobius_case_study (1 star, Jupyter Notebook, last commit 2025-07-23).

Abstract

Building on work of Charton, we train small transformer models to calculate the Möbius function $μ(n)$ and the squarefree indicator function $μ^2(n)$. The models attain nontrivial predictive power. We apply a mixture of additional models and feature scoring to give a theoretical explanation.

View on arXivView PDF

Code Implementations(1)

Code accompanying "Studying number theory with deep learning: a case study with the Möbius and squarefree indicator functions"

11Jupyter Notebook, PythonJul 3, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{lowryduda2025studying,
  title  = {Studying number theory with deep learning: a case study with the Möbius and squarefree indicator functions},
  author = {David Lowry-Duda},
  year   = {2025},
  eprint = {2502.10335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.10335v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.10335.svg)](https://codeofpaper.com/paper/2502.10335)

Discussion