A059512
For n>=2, the number of (s(0), s(1), …, s(n-1)) such that 0 < s(i) < 5 and |s(i) - s(i-1)| <= 1 for i = 1,2,…,n-1, s(0) = 2, s(n-1) = 2.
offset: 0
codomain: ℕ
Declarations
Section titled “Declarations”- A059512computable
For n>=2, the number of (s(0), s(1), …, s(n-1)) such that 0 < s(i) < 5 and |s(i) - s(i-1)| <= 1 for i = 1,2,…,n-1, s(0) = 2, s(n-1) = 2.