A344605 Number of alternating patterns of length n, including pairs (x,x).
1, 1, 3, 6, 22, 102, 562, 3618, 26586, 219798, 2018686, 20393790, 224750298, 2683250082, 34498833434, 475237879950, 6983085189454, 109021986683046, 1802213242949602, 31447143854808378, 577609702827987882, 11139837273501641502, 225075546284489412854
Offset: 0
Keywords
Examples
The a(0) = 1 through a(4) = 22 patterns: () (1) (1,1) (1,2,1) (1,2,1,2) (1,2) (1,3,2) (1,2,1,3) (2,1) (2,1,2) (1,3,1,2) (2,1,3) (1,3,2,3) (2,3,1) (1,3,2,4) (3,1,2) (1,4,2,3) (2,1,2,1) (2,1,3,1) (2,1,3,2) (2,1,4,3) (2,3,1,2) (2,3,1,3) (2,3,1,4) (2,4,1,3) (3,1,2,1) (3,1,3,2) (3,1,4,2) (3,2,3,1) (3,2,4,1) (3,4,1,2) (4,1,3,2) (4,2,3,1)
Links
- Martin Ehrenstein, Table of n, a(n) for n = 0..25
Crossrefs
Programs
Extensions
a(10) and beyond from Martin Ehrenstein, Jun 10 2021
Comments