OFFSET
1,2
COMMENTS
Conjecture: Every solution mod p lifts to an integer solution. See linked articles by Bourgain et al.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..125
Jean Bourgain, Alexander Gamburd, and Peter Sarnak, Markoff triples and strong approximation, arXiv:1505.06411 [math.NT], 2015.
Jean Bourgain, Alexander Gamburd, and Peter Sarnak, Markoff Surfaces and Strong Approximation: 1, arXiv:1607.01530 [math.NT], 2016.
Leonard Carlitz, The number of points on certain cubic surfaces over a finite field, Bollettino dell'Unione Matematica Italiana, Serie 3, Vol. 12 (1957), n.1, p. 19-21.
Mathematics Stack Exchange, Number of solutions to Markov Diophantine equation mod p.
Wikipedia, Markov number.
FORMULA
a(p) = p^2 + 3*p * Legendre(-1, p) + 1 for p prime, p > 3. (See linked post from Mathematics Stack Exchange.)
MATHEMATICA
a[n_]:= Total[Boole[Mod[#1^2+#2^2+#3^2-3 #1 #2 #3, n]==0]&@@@Tuples[Range[0, n-1], 3]]; Table[a[n], {n, 1, 50}] (* Vincenzo Librandi, Nov 07 2025 *)
PROG
(Python)
from itertools import product
def a(n): return sum((x*x+y*y+z*z-3*x*y*z)%n == 0 for x, y, z in product(range(n), repeat=3))
print([a(n) for n in range(1, 51)])
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
David Radcliffe, Jun 18 2025
STATUS
approved
