OFFSET
1,3
COMMENTS
In the parlance of extremal graph theory, a(n) is the extremal number ex(n, C_(0 mod 4)).
LINKS
Ervin Győri, Binlong Li, Nika Salia, Casey Tompkins, Kitti Varga, and Manran Zhu, On graphs without cycles of length 0 modulo 4, arXiv: 2312.09999 [math.CO], 2023.
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,0,1,-1).
FORMULA
a(n) = floor((19/12)*(n-1)). See Győri et al. in Links.
G.f.: x^2*(1 + 2*x + x^2 + 2*x^3 + x^4 + 2*x^5 + 2*x^6 + x^7 + 2*x^8 + x^9 + 2*x^10 + 2*x^11)/((1 - x)^2*(1 + x)*(1 - x + x^2)*(1 + x^2)*(1 + x + x^2)*(1 - x^2 + x^4)). - Andrew Howroyd, Nov 13 2025
EXAMPLE
For n = 4, any simple graph with 4 vertices and 5 edges contains a cycle of length 4 == 0 (mod 4), so a(4) < 5. There are exactly two nonisomorphic graphs with 4 vertices and 4 edges. One of them has no cycles of any length other than 3, so a(4) = 4.
MATHEMATICA
Table[Floor[19/12 * (n - 1)], {n, 100}]
PROG
(PARI) a(n) = {19*(n-1)\12} \\ Andrew Howroyd, Nov 13 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Luc Ta, Aug 21 2024
STATUS
approved
