Function Repository Resource:

IntegerSpectralBasis

Source Notebook

Obtain a spectral basis of a modular number system

Contributed by: Nikolay Murzin

ResourceFunction["IntegerSpectralBasis"][h]

gives the spectral basis of h.

Details and Options

Examples

Basic Examples (2) 

The spectral basis of the integer 12:

In[1]:=
ResourceFunction["IntegerSpectralBasis"][12]
Out[1]=

The spectral basis of a prime is always {1}:

In[2]:=
ResourceFunction["IntegerSpectralBasis"][Prime[RandomInteger[100]]]
Out[2]=

Properties and Relations (1) 

Reconstruct any integer modulo another integer from its spectral decomposition and spectral basis, the former of which is computed by the resource function IntegerSpectralDecomposition:

In[3]:=
Mod[ResourceFunction["IntegerSpectralDecomposition"][-12, 1337] . ResourceFunction["IntegerSpectralBasis"][1337], 1337] == Mod[-12, 1337]
Out[3]=

Publisher

N. Murzin

Version History

  • 2.0.0 – 15 June 2020
  • 1.0.0 – 23 March 2020

Source Metadata

Related Resources

License Information