OFFSET
1,3
EXAMPLE
Out of 6 simple connected graphs on n = 4 vertices, two are trees (the path and the claw), while all others have nonisomorphic matroids; a graphic matroid of a tree is free and therefore is unique for a given number of vertices, so the matroids of these two trees are isomorphic, and a(4) = 6-1 = 5.
PROG
(SageMath)
def a(n):
matroids = []
for G in graphs.nauty_geng(f"{n} -c"):
M = Matroid(G)
for N in matroids:
if M.is_isomorphic(N):
break
else:
matroids.append(M)
return len(matroids) # Andrei Zabolotskii, Feb 18 2026
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gordon Royle, Oct 06 2008
EXTENSIONS
Name clarified and a(1) inserted by Andrei Zabolotskii, Feb 18 2026
STATUS
approved
