OFFSET
1,3
COMMENTS
All the terms are odd numbers.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
1 <= a(n) < n, for n > 3.
MAPLE
f:= proc(n) local x; nops([msolve(x^3=x, n)])/nops([msolve(-x^3=x, n)]) end proc:
f(1):= 1: f(2):= 1: f(3):= 3: f(6):= 3:
map(f, [$1..100]); # Robert Israel, Oct 30 2025
MATHEMATICA
a[n_] := Length[Solve[x^3 == x, x, Modulus -> n]] / Length[Solve[-x^3 == x, x, Modulus -> n]]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Apr 22 2026 *)
PROG
(Magma) [#[m: m in [0..n-1] | m^3 mod n eq m]/#[m: m in [0..n-1] | -m^3 mod n eq m]: n in [1..96]];
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Juri-Stepan Gerasimov, Sep 29 2020
STATUS
approved
