%I #19 Jan 01 2023 15:59:20
%S 1,8,23,55,92,147,196,260,313,380,434,502,556,624,678,746,800,868,922,
%T 990,1044,1112,1166,1234,1288,1356,1410,1478,1532,1600,1654,1722,1776,
%U 1844,1898,1966,2020,2088,2142,2210,2264,2332,2386,2454,2508,2576,2630,2698
%N Number of n-regular, N_0-weighted pseudographs on 2 vertices with total edge weight 6, up to isomorphism.
%C Pseudographs are finite graphs with undirected edges without identity, where parallel edges between the same vertices and loops are allowed.
%H Lars Göttgens, <a href="/A358246/b358246.txt">Table of n, a(n) for n = 1..10000</a>
%H J. Flake and V. Mackscheidt, <a href="https://arxiv.org/abs/2206.08226">Interpolating PBW Deformations for the Orthosymplectic Groups</a>, arXiv:2206.08226 [math.RT], 2022.
%H Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Pseudograph.html">Pseudograph</a>.
%F Apparently a(n) = a(n-1) + a(n-2) - a(n-3) for n >= 13. - _Hugo Pfoertner_, Dec 02 2022
%e For n = 2 the a(2) = 8 such pseudographs are: 1. two vertices connected by a 6-edge and a 0-edge, 2. two vertices connected by a 5-edge and a 1-edge, 3. two vertices connected by a 4-edge and a 2-edge, 4. two vertices connected by two 3-edges, 5. two vertices where one has a 6-loop and the other one has a 0-loop, 6. two vertices where one has a 5-loop and the other one has a 1-loop, 7. two vertices where one has a 4-loop and the other one has a 2-loop, 8. two vertices with a 3-loop each.
%o (Julia)
%o using Combinatorics
%o function A(n::Int)
%o sum_total = 6
%o result = 0
%o for num_loops in 0:div(n, 2)
%o num_cross = n - 2 * num_loops
%o for sum_cross in 0:sum_total
%o for sum_loop1 in 0:sum_total-sum_cross
%o sum_loop2 = sum_total - sum_cross - sum_loop1
%o if sum_loop2 == sum_loop1
%o result +=
%o div(
%o npartitions_with_zero(sum_loop2, num_loops) *
%o (npartitions_with_zero(sum_loop2, num_loops) + 1),
%o 2,
%o ) * npartitions_with_zero(sum_cross, num_cross)
%o elseif sum_loop2 > sum_loop1
%o result +=
%o npartitions_with_zero(sum_loop2, num_loops) *
%o npartitions_with_zero(sum_loop1, num_loops) *
%o npartitions_with_zero(sum_cross, num_cross)
%o end
%o end
%o end
%o end
%o return result
%o end
%o function npartitions_with_zero(n::Int, m::Int)
%o if m == 0
%o if n == 0
%o return 1
%o else
%o return 0
%o end
%o else
%o return Combinatorics.npartitions(n + m, m)
%o end
%o end
%o print([A(n) for n in 1:48])
%Y Other total edge weights: A358243 (3), A358244 (4), A358245 (5), A358247 (7), A358248 (8), A358249 (9).
%K nonn
%O 1,2
%A _Lars Göttgens_, Nov 04 2022